@snowball-tech/fractal
Version:
Fractal's (Snowball's design system) React component library based on RadixUI and TailwindCSS
22 lines (21 loc) • 676 B
TypeScript
import { ReactNode } from "react";
import { SwitchProps } from "@radix-ui/react-switch";
//#region src/components/Switch/Switch.types.d.ts
interface SwitchProps$1 extends Omit<SwitchProps, '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;
}
//#endregion
export { SwitchProps$1 as SwitchProps };
//# sourceMappingURL=Switch.types.d.ts.map