ComponentsSwitch

Switch

Turn an individual setting on or off.

Example

Notification settings

Choose when you hear from your workspace.

Setup

Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.

Default and compact

Use the smaller track in dense preference lists.

Example

Delivery preferences

Manage your reminders.

Disabled switch

Explain why a setting is locked.

Example

Security

This policy applies to every member.

Usage

LabelKeep the accessible label the same in both states. The native checkbox supports Space.
FormsSet name to the setting key. FormData includes the value true when checked. Treat an absent field as false.
MotionThe thumb slides with shared timing and respects reduced motion.