UNPKG

@project-jade-garden/reka-ui

Version:
29 lines (28 loc) 897 B
import { SVATraits } from 'jade-garden'; /** * **Switch** * @description A control that allows the user to toggle between checked and not checked. * @see [source](https://reka-ui.com/docs/components/switch#anatomy) */ export declare const slots: readonly ["root", "thumb"]; /** * **Switch** * @description A control that allows the user to toggle between checked and not checked. * @see [source](https://reka-ui.com/docs/components/switch#anatomy) */ export type Slots = (typeof slots)[number]; /** * **Switch** * @description A control that allows the user to toggle between checked and not checked. * @see [source](https://reka-ui.com/docs/components/switch#api-reference) */ export type Traits = SVATraits<Slots, { root: { state: "checked" | "unchecked"; disabled: ""; }; thumb: { state: "checked" | "unchecked"; disabled: ""; }; }>;