Radio Group

A component that renders a group of radio buttons using Medusa's design system.

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

Was this example helpful?

Usage#

Code
import { RadioGroup } from "@medusajs/ui"
Code
1<RadioGroup>2  <RadioGroup.Item value="1" id="radio_1" />3  <RadioGroup.Item value="2" id="radio_2" />4  <RadioGroup.Item value="3" id="radio_3" />5</RadioGroup>

API Reference#

This component is based on the Radix UI Radio Group primitives.


Examples#

Radio Group with Descriptions#

Was this example helpful?

Controlled Radio Group#

Was this example helpful?

Radio Group with a Disabled Item#

Was this example helpful?

Radio Choice Box#

The RadioGroup.ChoiceBox component allows you to show a group of radio buttons, each in a box with a label and description.

Was this example helpful?

Choice Box API Reference#

Was this guide helpful?
Ask Bloom
For assistance in your development, use Claude Code Plugins or Medusa MCP server in Cursor, VSCode, etc...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