Radio

Radio is a component used for allowing users to select one option from multiple choices.

Usage

import { Radio, RadioGroup } from "@yamada-ui/react"
<RadioGroup.Root>
  <RadioGroup.Item />
</RadioGroup.Root>

Use Items

Change Variant

Change Size

Set Default Value

To set a default value, set defaultValue to a value.

Default Checked

To default checked, set defaultChecked to true.

Change Direction

To change the direction, set orientation to "horizontal" or "vertical". The default is "vertical".

Change Shape

To change the shape, set shape to "circle", "square" or "rounded". The default is "circle".

Disable

To disable, set disabled to true.

Read-Only

To read-only, set readOnly to true.

Invalid

To make invalid, set invalid to true.

Change Border Color

To change the border color, set focusBorderColor or errorBorderColor to a color value.

Control

Use Custom Component

Props

Accessibility

Currently, this section is being updated due to the migration of v2.