Toggle
A form component implementing basic binary choice selections on individual custom button frames.
For more information on this component configuration, visit Radix UI
Disabled
Use the disabled attr or the disabled class to disable a component.
Controlled
Use the pressed and onPressedChange props when you need to control the value externally.
Uncontrolled
Use the name prop to include the value in the form submission.
API
For more information on this component configuration, visit Radix UI
Toggle
| Element | Selector |
|---|---|
Toggle | .ex-toggle |
| Prop | Type | Default |
|---|---|---|
as | ElementType | div |
asChild | boolean | false |
defaultPressed | boolean | false |
disabled | boolean | false |
pressed | boolean | false |
onPressedChange | function |
Last updated on