Skip to main content
The Toggle component renders a boolean toggle switch that can be configured with sizing, label position, read-only, and more.
toggle-example

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.
toggledisplay-examples
  • 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.
toggle-size-examples
Last modified on March 29, 2026