Cave design system
العربية

Components

Forms

Switch

An immediately applied on-or-off setting.

Interactive preview

Open web example

Locale updates direction, built-in messages and formatting. Applications provide their content translations. Isolate emails, phone numbers and identifiers from paragraph direction.

Configured code

Guidance

Use switches for settings that take effect immediately. Keep the label unchanged when toggled. Use role="switch" on a native checkbox and preserve its keyboard behaviour.