zalify-ui

Radio Group

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

React

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.

React

Colors

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

React

Sizes

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

React

Disabled

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

React

Closed Component

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

Here's how to use it:

Props

Root

Item