import React from "react"; import { FieldLabel } from "src/primitives/Field"; import { Switch as PrimitiveSwitch } from "src/primitives/Switch"; export interface SwitchProps extends Omit, "children"> { /** Text label displayed next to the switch. */ label?: string; /** Error message displayed below the switch. */ error?: string; /** Helper text displayed below the label. Accepts string or ReactNode. */ helpText?: React.ReactNode; /** Shows a required indicator next to the label. */ required?: boolean; /** Additional class name for the outermost wrapper. */ className?: string; /** Size of the switch. */ size?: "sm" | "default" | "lg"; /** Props forwarded to the Label element. */ labelProps?: React.ComponentProps; } declare const Switch: React.ForwardRefExoticComponent & React.RefAttributes>; export { Switch };