Skip to Content
Documentation
Getting startedComponentsChartsTheming
Get Pro
Overview
Concepts

Radio Card

Used to select an option from list

SourceStorybookRecipeArk
Select framework

Anatomy

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

import { RadioCard } from '#components/ui/radio-card'
<RadioCard.Root>
  <RadioCard.Label />
  <RadioCard.Item />
</RadioCard.Root>

Examples

Sizes

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

size = (sm)
size = (md)
size = (lg)

Colors

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

Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework
Select Framework

Icon

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

Select permission

Centered

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

Select contract type

Addon

Use the RadioCardItemAddon component to add an addon below the radio card content.

Select framework

Props

Root

PropDefaultType
colorPalette 'gray'
'gray' | 'zinc' | 'neutral' | 'stone' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | 'presence' | 'status' | 'sidebar' | 'sidebar.accent' | 'accent' | 'slate'

The color palette of the component

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

The size of the component

variant 'outline'
'surface' | 'subtle' | 'outline' | 'solid'

The variant of the component

align 'start'
'start' | 'end' | 'center'

The align of the component

orientation 'horizontal'
'vertical' | 'horizontal'

The orientation of the component

justify
'start' | 'end' | 'center'

The justify 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