import React, { type ChangeEvent, type ReactElement } from "react"; import { type VibeComponentProps } from "../../types"; import { type MockToggleProps } from "../Toggle/MockToggle"; export interface SwitchProps extends VibeComponentProps { /** * The name of the switch input. */ name?: string; /** * The value associated with the switch. */ value?: string; /** * The ARIA role of the switch. */ role?: string; /** * If true, the switch is disabled. */ disabled?: boolean; /** * The ARIA label for accessibility. */ "aria-label"?: string; /** * The ID of the element labeling the switch. */ "aria-labelledby"?: string; /** * If true, the switch is checked. */ checked?: boolean; /** * Class name applied to the input element. */ inputClassName?: string; /** * Callback fired when the switch state changes. */ onChange?: (value: boolean, event: ChangeEvent) => void; /** * The ID of the element controlled by the switch. */ "aria-controls"?: string; /** * If true, the switch is checked by default. */ defaultChecked?: boolean; /** * The child component rendered inside the switch. */ children?: ReactElement; /** * Class name applied to the wrapper element. */ wrapperClassName?: string; } declare const Switch: React.ForwardRefExoticComponent>; export default Switch;