The Toggle component renders a boolean toggle switch that can be configured with sizing, label position, read-only, and more.
Props
Variants
Using the labelDisplay and size props, you can customize toggle appearance.
labelDisplay: set to 'inline' or 'top' to configure the label position, or set to 'hidden' to hide the label.
size: by default, toggles are set to 'md'. Shrink the toggle size by setting this prop to 'xs' or 'sm'. Note that only medium toggles will display ON/OFF status text.
Last modified on March 29, 2026