RadioCard

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

Usage

import { RadioCard, RadioCardGroup } from "@yamada-ui/react"
<RadioCardGroup.Root>
  <RadioCardGroup.Item.Root>
    <RadioCardGroup.Item.Label />
    <RadioCardGroup.Item.Description />
    <RadioCardGroup.Item.Addon />
  </RadioCardGroup.Item.Root>
</RadioCardGroup.Root>

Using items

Change Variant

Change Size

Change Color Scheme

Set Default Value

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

Change Orientation

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

Change Shape

Change Alignment

To change the alignment, set justify to "start", "center", or "end". By default, "start" is set.

Add Addon

To add an addon, set ReactNode to addon.

Hide Indicator

To hide the indicator, set withIndicator to false.

Disable

To disable, set disabled to true.

Read-Only

To make read-only, set readOnly to true.

Invalid

To make invalid, set invalid to true.

Customize Border Color

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

Control

Props

Accessibility

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