Gazebo_simulation-Frontend/node_modules/react-bootstrap/ToggleButton.d.ts

23 lines
644 B
TypeScript
Raw Permalink Normal View History

2020-12-21 11:29:31 -04:00
import * as React from 'react';
import Button, { ButtonProps } from './Button';
import { BsPrefixComponent, BsPrefixComponentClass } from './helpers';
export interface ToggleButtonProps {
type?: 'checkbox' | 'radio';
name?: string;
checked?: boolean;
disabled?: boolean;
onChange?: React.ChangeEventHandler<this>;
value: unknown;
inputRef?: React.LegacyRef<this>;
}
declare class ToggleButton<
// Need to use BsPrefixComponentClass to get proper type checking.
As extends React.ElementType = BsPrefixComponentClass<'button', ButtonProps>
> extends BsPrefixComponent<As, ToggleButtonProps> {}
export default ToggleButton;