import { default as React } from 'react'; import { Label } from '../label'; import * as SwitchPrimitive from '@radix-ui/react-switch'; /** ------------------------------------------------------------------------------------------------- * ToggleRoot * -----------------------------------------------------------------------------------------------*/ type ToggleRootProps = Omit, 'id'> & { /** The id you want to use to connect the label to the toggle. If not provided, it will be generated */ id?: string; }; /** ------------------------------------------------------------------------------------------------- * ToggleLabel * -----------------------------------------------------------------------------------------------*/ type ToggleLabelProps = Omit, 'id'>; /** ------------------------------------------------------------------------------------------------- * ToggleInput * -----------------------------------------------------------------------------------------------*/ type ToggleInputProps = Omit, 'id'>; /** ------------------------------------------------------------------------------------------------- * ToggleThumb * -----------------------------------------------------------------------------------------------*/ type ToggleThumbProps = React.ComponentPropsWithoutRef; declare const Toggle: React.ForwardRefExoticComponent, HTMLDivElement>, "ref">, "id"> & { /** The id you want to use to connect the label to the toggle. If not provided, it will be generated */ id?: string; } & React.RefAttributes> & { Label: React.ForwardRefExoticComponent>; Input: React.ForwardRefExoticComponent>; Thumb: React.ForwardRefExoticComponent, "ref"> & React.RefAttributes>; Indicator: React.ForwardRefExoticComponent & { name: import('..').IconName; size?: "xs" | "sm" | "md" | "lg" | "font" | "xxs" | "xl"; title?: string; children?: React.ReactNode; }, "ref">> & React.RefAttributes>; }; type ToggleProps = { Root: ToggleRootProps; Label: ToggleLabelProps; Input: ToggleInputProps; Thumb: ToggleThumbProps; }; export { Toggle }; export type { ToggleProps };