UNPKG

@snowball-tech/fractal

Version:

Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS

21 lines (18 loc) 603 B
import { SwitchProps as SwitchProps$1 } from '@radix-ui/react-switch'; import { ReactNode } from 'react'; interface SwitchProps extends Omit<SwitchProps$1, 'asChild' | 'onCheckedChange' | 'onToggle'> { checked?: boolean; children?: ReactNode; defaultChecked?: boolean; disabled?: boolean; id?: string; label?: ReactNode; labelElement?: keyof HTMLElementTagNameMap; labels?: Array<ReactNode>; name?: string; required?: boolean; switchPosition?: 'left' | 'right'; value?: string; onToggle?: (newState: boolean) => void; } export type { SwitchProps };