Build faster with Premium Chakra UI Components 💎

Learn more
Skip to Content
DocsEnterpriseBlogShowcase
Sponsor

Radio Card

Used to select an option from list

SourceStorybookRecipeArk

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,
  RadioCardLabel,
  RadioCardRoot,
} from "@/components/ui/radio-card"
<RadioCardRoot>
  <RadioCardLabel />
  <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 using a label, description and icon within the RadioCardItem.

No Indicator

Here's an example of setting the indicator prop to null to hide the indicator.

No Indicator (Vertical)

Here's an example of a RadioCard with no indicator and content aligned vertically.

Centered

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

Composition

Here's an example of composing the RadioCard with the Group component.

Addon

Pass the addon prop to the RadioCardItem component to add metadata below the item content.

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.

Previous

Progress

Next

Radio