/** * A button that stays down. * * One piece of state and one ARIA attribute: `aria-pressed` tells a screen * reader this is a toggle rather than an action, and the styling reads the same * value, so the two cannot disagree. * * Controlled through `pressed`, or uncontrolled through `defaultPressed` with * `onPressedChange` to hear about it. */ import { XStack } from '@hanzo/gui'; import { type ComponentProps, type ReactNode } from 'react'; export type ToggleVariant = 'default' | 'outline'; export type ToggleSize = 'sm' | 'default' | 'lg'; export type ToggleProps = Omit, 'onPress'> & { readonly pressed?: boolean; readonly defaultPressed?: boolean; readonly onPressedChange?: (pressed: boolean) => void; readonly disabled?: boolean; readonly variant?: ToggleVariant; readonly size?: ToggleSize; readonly children?: ReactNode; }; export declare function Toggle({ pressed, defaultPressed, onPressedChange, disabled, variant, size, children, ...rest }: ToggleProps): import("react").JSX.Element; export default Toggle; //# sourceMappingURL=toggle.d.ts.map