Skip to Content
DocsEnterpriseBlogShowcase

Radio Card

Used to select an option from list

Ark UISourceStorybookRecipe

Setup

If you don't already have the snippet, run the following command to add the radio-card snippet

chakra snippet add radio-card

The snippet includes a closed component composition for the RadioCard component.

Usage

A RadioCard is a form element with a larger interaction surface represented as a card.

import {
  RadioCardItem,
  RadioCardItemText,
  RadioCardLabel,
  RadioCardRoot,
} from "@/components/ui/radio-card"
<RadioCardRoot>
  <RadioCardLabel />
  <RadioCardItem>
    <RadioCardItemText />
  </RadioCardItem>
</RadioCardRoot>

Examples

Sizes

Use the size prop to change the size of the radio card.

Colors

Use the colorPalette prop to change the color of the radio card.

Icon

Here's an example of a RadioCard with an icon.

Centered

Here's an example of a RadioCard with centered text.

Props

Root

PropDefaultType
colorPalette 'gray'
'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink' | 'accent'

The color palette of the component

size 'md'
'sm' | 'md' | 'lg'

The size of the component

variant 'outline'
'plain' | 'subtle' | 'outline'

The variant of the component

as
React.ElementType

The underlying element to render.

asChild
boolean

Use the provided child element as the default rendered element, combining their props and behavior.

For more details, read our Composition guide.
unstyled
boolean

Whether to remove the component's style.