Ethereal Garden

Switch

A control that allows the user to toggle between checked and unchecked states.

When To Use

Use the Switch component when you need to:

  • Allow users to toggle a single option on or off
  • Provide a binary choice with immediate effect
  • Create an on/off control for settings or features
  • Enable or disable a functionality
  • Create a visual toggle that clearly shows the current state

Switches are ideal for settings pages, feature toggles, and anywhere you need to show a clear binary state with immediate visual feedback.

Examples

Basic

Switch is off

With Label

Receive weekly updates about new products and features.

Disabled

Custom

Reduces performance to extend battery life

Props

PropTypeDefault
$$typeof
symbol
-
displayName?
string
-
propTypes?
any
-