Component

Card

Bordered container with padding and optional muted background.

Default

live editor β€” edit to update preview
<Card>
  <p className="text-sm font-semibold">Card title</p>
  <p className="text-xs text-muted mt-1">Some content inside the card.</p>
</Card>

Padding variants

live editor β€” edit to update preview
<div className="space-y-4">
  <Card padding="sm"><p className="text-xs text-muted">padding="sm"</p></Card>
  <Card padding="md"><p className="text-xs text-muted">padding="md" (default)</p></Card>
  <Card padding="lg"><p className="text-xs text-muted">padding="lg"</p></Card>
</div>

Muted background

live editor β€” edit to update preview
<Card muted>
  <p className="text-sm font-semibold">Muted card</p>
  <p className="text-xs text-muted mt-1">Used for secondary or informational content.</p>
</Card>

Props

PropTypeDefaultDescription
padding"sm" | "md" | "lg""md"Inner padding.
mutedbooleanfalseApplies a grey background.
classNamestringβ€”Additional classes.
children*ReactNodeβ€”Card content.