Skip to Content

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

ElementSelector
Toggle.ex-toggle
PropTypeDefault
asElementTypediv
asChildbooleanfalse
defaultPressedbooleanfalse
disabledbooleanfalse
pressedbooleanfalse
onPressedChangefunction
Last updated on