Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

Switch

Switch is a component used to toggle between on and off states.

Source@yamada-ui/switch

The Switch follows the WAI-ARIA - Switch Pattern for accessibility.

Keyboard Navigation

KeyDescriptionState
TabFocuses on a switch that is not disabled.-
Space, EnterToggles the on/off state of the switch.-

ARIA Roles and Attributes

ComponentRoles and AttributesUsage
Switchrole="switch"Indicates that it is a switch.
aria-checkedSet to "true" if the switch is on, "false" if it is off.

Edit this page on GitHub

PreviousCheckboxCardNextToggle