Switch

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

Was this example helpful?

Usage#


Code
import { Switch } from "@medusajs/ui"
Code
<Switch />

API Reference#


This component is based on the Radix UI Switch primitive.

PropTypeDefault
size
"small"
|"base"
"base"
Was this helpful?

Examples#


Small#

Was this example helpful?

Disabled#

Was this example helpful?

Checked#

Was this example helpful?

Checked Disabled#

Was this example helpful?
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break