Switch
A toggle that allows users to turn an option on or off.
API Reference
Usage
Properties
The Switch
component extends the Bits UI <Switch>
component. Find the full list of available properties in the official Bits UI documentation.
Examples
Description
Use the Description
component to provide additional information and helpful context about the switch.
Sublabel
Use the Sublabel
component to add a secondary label to the switch.
Reversed
Place the Switch
last in the SwitchField
component to make the switch appear on the right side of the label.
Disabled
Use the disabled
property to prevent users from interacting with the switch.