/** * Toggle - a two-state pressed button (on / off). Behavioural but self-contained * (a single `aria-pressed` button, no floating engine needed): controlled via * `pressed`/`onPressedChange` or uncontrolled via `defaultPressed`. State is * exposed as `data-state="on" | "off"` for styling; `asChild` grafts the toggle * behaviour onto your own element. Skinned entirely with veryfront theme tokens. * * @module react/components/ui/toggle */ import * as React from "react"; /** Props accepted by ``. */ export interface ToggleProps extends Omit, "onChange"> { /** Controlled pressed state. Pair with `onPressedChange`. */ pressed?: boolean; /** Initial pressed state when uncontrolled. @default false */ defaultPressed?: boolean; /** Fires with the next pressed state on user activation. */ onPressedChange?: (pressed: boolean) => void; /** Render as a Slot, merging the toggle behaviour onto the child element. */ asChild?: boolean; /** React 19: ref is a regular prop. */ ref?: React.Ref; } /** Render a pressed toggle button. */ export declare function Toggle({ pressed, defaultPressed, onPressedChange, asChild, disabled, className, onClick, ref, ...props }: ToggleProps): React.ReactElement; //# sourceMappingURL=toggle.d.ts.map