Checkbox

A component for rendering checkbox inputs using Medusa's design system.

In this guide, you'll learn how to use the Checkbox component.

Was this example helpful?

Usage#

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

API Reference#

This component is based on the Radix UI Checkbox primitive.


Examples#

Checkbox All States#

Was this example helpful?

Controlled Checkbox#

The following checkbox will move from unchecked, to indeterminate, and finally checked each time you click it
Was this guide 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