Switch
A text field allows a user to enter a plain text value with a keyboard.
Installation
CLI
Copy & Paste
Examples
Default
The default Switch
uses size md
.
Example
Code
Alignment
Switches can be either left or right aligned.
Example
Code
Sizes
You can use the size
prop to alter the Switch
size. Sizes sm
, md
, and lg
are included by default.
Example
Code
Disabled
Use the isDisabled
prop to make the Switch
disabled.
Example
Code