# Card: Sizes

> `size="sm"` tightens the spacing, radius and title size together, so a compact card still looks like part of the same family. `size="flush"` removes the inner spacing for custom layouts such as lists and collapsible rows that bring their own padding.

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

## Add this example

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

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

## Source

```tsx title="components/examples/card/sizes.tsx"
import { Button } from "@/components/ui/button"
import {
  Card,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"

export function CardSizes() {
  return (
    <div className="grid w-full gap-4 sm:grid-cols-2">
      <Card>
        <CardHeader>
          <CardTitle>Default</CardTitle>
          <CardDescription>Spacing and radius scale together.</CardDescription>
        </CardHeader>
        <CardContent>
          <p>Deploys run on every push to main.</p>
        </CardContent>
        <CardFooter>
          <Button variant="outline">Configure</Button>
        </CardFooter>
      </Card>
      <Card size="sm">
        <CardHeader>
          <CardTitle>Small</CardTitle>
          <CardDescription>Spacing and radius scale together.</CardDescription>
        </CardHeader>
        <CardContent>
          <p>Deploys run on every push to main.</p>
        </CardContent>
        <CardFooter>
          <Button size="sm" variant="outline">
            Configure
          </Button>
        </CardFooter>
      </Card>
    </div>
  )
}
```

## Props in this example

### Card

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `size` | `"default" \| "sm" \| "flush"` | `"default"` | Scales spacing, radius and title size together. |

## More Card examples

- [Variants](https://hextaui.com/docs/card/examples/variants.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)
