UNPKG

@trail-ui/react

Version:
21 lines (18 loc) 679 B
import * as react from 'react'; import { ReactNode } from 'react'; import { SwitchProps as SwitchProps$1 } from 'react-aria-components'; type SwitchIconProps = { width: string; height: string; isSelected: boolean; className: string; }; interface SwitchProps extends SwitchProps$1 { icon?: ReactNode | ((props: SwitchIconProps) => ReactNode); className?: string; size?: 'sm' | 'md' | 'lg'; label: string; onValueChange?: (value: boolean, props: SwitchIconProps) => void; } declare const _Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLLabelElement>>; export { _Switch as Switch, SwitchIconProps, SwitchProps };