UNPKG

@trail-ui/react

Version:
25 lines (22 loc) 654 B
import * as react from 'react'; import { FocusEventHandler } from 'react'; interface SwitchProps { label?: string; labelId?: string; ariaLabelledby?: string; isToggled: boolean; onChange: (value: boolean) => void; activeText?: string; inactiveText?: string; isDisabled?: boolean; tabIndex?: number | undefined; onFocus?: FocusEventHandler; classNames?: { base?: string; label?: string; switch?: string; text?: string; }; } declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLDivElement>>; export { SwitchProps, Switch as default };