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#
API Reference#
This component is based on the Radix UI Radio Group primitives.
Examples#
Radio Group with Descriptions#
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
Was this example helpful?
Controlled Radio Group#
Selected value: 1
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#
This component is based on the Radix UI Radio Group Item primitives.
Prop | Type | Default |
---|---|---|
label | string | - |
description | string | - |
value | string | - |
Was this guide helpful?