UNPKG

@project-jade-garden/bits-ui

Version:
23 lines (22 loc) 784 B
import { SVATraits } from 'jade-garden'; /** * **Switch** * @description A toggle control enabling users to switch between "on" and "off" states. * @see [source](https://www.bits-ui.com/docs/components/switch#api-reference) */ export declare const slots: readonly ["root", "thumb"]; /** * **Switch** * @description A toggle control enabling users to switch between "on" and "off" states. * @see [source](https://www.bits-ui.com/docs/components/switch#api-reference) */ export type Slots = (typeof slots)[number]; /** * **Switch** * @description A toggle control enabling users to switch between "on" and "off" states. * @see [source](https://www.bits-ui.com/docs/components/switch#api-reference) */ export type Traits = SVATraits<Slots, { root: {}; thumb: {}; }>;