UNPKG

@project-jade-garden/reka-ui

Version:
25 lines (24 loc) 720 B
import { SVATraits } from 'jade-garden'; /** * **Toggle** * @description A two-state button that can be either on or off. * @see [source](https://reka-ui.com/docs/components/toggle#anatomy) */ export declare const slots: readonly ["root"]; /** * **Toggle** * @description A two-state button that can be either on or off. * @see [source](https://reka-ui.com/docs/components/toggle#anatomy) */ export type Slots = (typeof slots)[number]; /** * **Toggle** * @description A two-state button that can be either on or off. * @see [source](https://reka-ui.com/docs/components/toggle#api-reference) */ export type Traits = SVATraits<Slots, { root: { state: "on" | "off"; disabled: ""; }; }>;