Radio Cards

Set of interactive cards where only one can be selected at a time.

This component inherits props from the Radio Group primitive and supports common margin props.

PropTypeDefault
color"gray" | "purple" "gray"
variant"surface" | "classic""surface"
size"1" | "2" | "3""2"
columnsResponsive<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | string>repeat(auto-fit, minmax(160px, 1fr))
gapResponsive<"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | string>4

An item in the group that can be checked.

Use the size prop to control the size.

Use the variant prop to control the visual style.

Use the columns prop to control the number of columns.

Use the color prop to assign a specific color.

Use the highContrast prop to increase color contrast with the background.