Park UI

Radio Group

A form input component for selecting one option from a set of choices.

Installation

Usage

Info

If you prefer a closed component composition, check out the snippet below.

Examples

Controlled

Pass the value and onValueChange props to the RadioGroup.Root component to control the selected radio button.

Colors

Pass the colorPalette prop to the RadioGroup.Root component to change the color scheme of the component.

Sizes

Pass the size prop to the RadioGroup.Root component to change the size of the radio component.

Disabled

Pass the disabled prop to the RadioGroup.Item component to make the radio disabled.

Closed Component

Here's how to setup the Radio for a closed component composition.

Here's how to use it:

Props

Root

Item