UNPKG

@trail-ui/react

Version:
24 lines (21 loc) 625 B
import * as react from 'react'; import { FocusEventHandler } from 'react'; interface SwitchProps { label?: string; labelId?: 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 };