Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ToggleButton.d.ts 680B

1234567891011121314151617181920212223
  1. import * as React from 'react';
  2. import Button, { ButtonProps } from './Button';
  3. import { BsPrefixComponent, BsPrefixComponentClass } from './helpers';
  4. export interface ToggleButtonProps {
  5. type?: 'checkbox' | 'radio';
  6. name?: string;
  7. checked?: boolean;
  8. disabled?: boolean;
  9. onChange?: React.ChangeEventHandler<this>;
  10. value: unknown;
  11. inputRef?: React.LegacyRef<this>;
  12. innerRef?: React.LegacyRef<this>;
  13. }
  14. declare class ToggleButton<
  15. // Need to use BsPrefixComponentClass to get proper type checking.
  16. As extends React.ElementType = BsPrefixComponentClass<'button', ButtonProps>
  17. > extends BsPrefixComponent<As, ToggleButtonProps> {}
  18. export default ToggleButton;