Skip to content

Card

Free

A bordered box that groups one topic: a header with a title, a description, and an action, then content and a footer. Two sizes; images go edge to edge.

  • React 19
  • Tailwind CSS 4

Added Nov 8, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Compose the parts you need.

plan-card.tsx

Card

<div>
PropTypeDefaultDescription
flushbooleanfalse
size"default""sm""default"
variant"dashed""default""selected""default"
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CardHeader

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CardTitle

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CardDescription

<p>
PropTypeDefaultDescription
...props<p> attributes—Every other attribute goes to the <p>, with a ref.

CardAction

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CardContent

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

CardFooter

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it for a single block of content or a grid tile.
  • Use size="sm" for a dense grid, or a card inside a Dialog.
  • Use flush when the parts sit between rules.
  • For related panels with a header and a footer outside them, use a Frame.
  • For a list of rows, use a list of items, not a card per row.

It has no role, so a screen reader finds it by the heading inside.

  1. AddedCard.
Open the release