@snowball-tech/fractal
Version:
Fractal's (Snowball's design system) React component library based on RadixUI and PandaCSS
21 lines (18 loc) • 562 B
TypeScript
import { SwitchProps as SwitchProps$1 } from '@radix-ui/react-switch';
import { ReactNode } from 'react';
interface SwitchProps extends Omit<SwitchProps$1, 'asChild' | 'onCheckedChange'> {
checked?: boolean;
children?: ReactNode;
defaultChecked?: boolean;
disabled?: boolean;
id?: string;
label?: string;
labelAsDiv?: boolean;
labels?: Array<string>;
name?: string;
required?: boolean;
switchPosition?: 'left' | 'right';
value?: string;
onToggle?: (newState: boolean) => void;
}
export type { SwitchProps };