GoScrobble/web/node_modules/react-bootstrap/cjs/ToggleButton.d.ts

16 lines
742 B
TypeScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
import React from 'react';
import { ButtonProps } from './Button';
import { BsPrefixAndClassNameOnlyProps, BsPrefixComponentClass } from './helpers';
export interface ToggleButtonProps extends ButtonProps, React.PropsWithChildren<BsPrefixAndClassNameOnlyProps> {
type?: 'checkbox' | 'radio';
name?: string;
checked?: boolean;
disabled?: boolean;
onChange?: React.ChangeEventHandler<HTMLInputElement>;
value: string | ReadonlyArray<string> | number;
inputRef?: React.LegacyRef<HTMLInputElement>;
}
declare type ToggleButton = BsPrefixComponentClass<'button', ToggleButtonProps>;
declare const ToggleButton: React.ForwardRefExoticComponent<ToggleButtonProps & React.RefAttributes<any>>;
export default ToggleButton;