1 | import * as React from 'react';
|
2 |
|
3 | import Button from './Button';
|
4 |
|
5 | import { BsPrefixComponent } from './helpers';
|
6 |
|
7 | export interface ToggleButtonProps {
|
8 | type?: 'checkbox' | 'radio';
|
9 | name?: string;
|
10 | checked?: boolean;
|
11 | diabled?: boolean;
|
12 | onChange?: React.ChangeEventHandler<this>;
|
13 | value: unknown;
|
14 | inputRef?: React.LegacyRef<this>;
|
15 | innerRef?: React.LegacyRef<this>;
|
16 | }
|
17 |
|
18 | declare class ToggleButton<
|
19 | As extends React.ElementType = typeof Button
|
20 | > extends BsPrefixComponent<As, ToggleButtonProps> {}
|
21 |
|
22 | export default ToggleButton;
|