Draft UI

Radio Group

A radio group allows a user to select a single item from a list of mutually exclusive options.

Installation

bash
npx @sly-cli/sly add draft-ui radio-group

Examples

Default

The default RadioGroup uses orientation vertical.

Favorite animal

Horizontal

Set the orientation prop to horizontal to use a horizontal RadioGroup.

Favorite animal

Disabled

Use the isDisabled prop to make the entire RadioGroup disabled.

Favorite animal