# Card: Variants

> `default` sits on a hairline ring with a soft shadow, `outline` drops the fill and shadow, and `muted` uses a filled surface for quieter sections.

Example: https://hextaui.com/docs/card/examples/variants
Component docs: https://hextaui.com/docs/card.md

## Add this example

```bash
npx shadcn@latest add https://hextaui.com/r/card-variants.json
```

This adds `components/examples/card/variants.tsx` with the Card component and the HextaUI theme tokens.

## Source

```tsx title="components/examples/card/variants.tsx"
import {
  Card,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"

export function CardVariants() {
  return (
    <div className="grid w-full gap-4 sm:grid-cols-3">
      <Card>
        <CardHeader>
          <CardTitle>Default</CardTitle>
          <CardDescription>Hairline ring and a soft shadow.</CardDescription>
        </CardHeader>
      </Card>
      <Card variant="outline">
        <CardHeader>
          <CardTitle>Outline</CardTitle>
          <CardDescription>Ring only, no fill, no shadow.</CardDescription>
        </CardHeader>
      </Card>
      <Card variant="muted">
        <CardHeader>
          <CardTitle>Muted</CardTitle>
          <CardDescription>Filled surface for quiet sections.</CardDescription>
        </CardHeader>
      </Card>
    </div>
  )
}
```

## Props in this example

### Card

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `"default" \| "outline" \| "muted"` | `"default"` |  |

## More Card examples

- [Sizes](https://hextaui.com/docs/card/examples/sizes.md)
- [Media](https://hextaui.com/docs/card/examples/media.md)
- [Clickable card](https://hextaui.com/docs/card/examples/link.md)
- [Clickable variants](https://hextaui.com/docs/card/examples/link-variants.md)
- [Borders](https://hextaui.com/docs/card/examples/borders.md)
- [Nested](https://hextaui.com/docs/card/examples/nested.md)
- [Long content](https://hextaui.com/docs/card/examples/long-content.md)
- [Semantics](https://hextaui.com/docs/card/examples/semantics.md)
- [Right to left](https://hextaui.com/docs/card/examples/rtl.md)
