# Basic

> Header, action, content, and a bordered footer.

A shadcn/ui block from the [@flx](https://ui.flexnative.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/flx/card-01).

- Page, with a live preview: https://shadcn.exchange/r/flx/card-01
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/flx/card-01-light-0ccc77051b0db415.png
- Registry item: https://ui.flexnative.com/r/card-01.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/card-01.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `card`, `button`

## Files

### `registry/patterns/card/card-01.tsx`

```tsx
import { Button } from '@/components/ui/button'
import {
  Card,
  CardAction,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from '@/components/ui/card'

export function Card01() {
  return (
    <Card className="w-full max-w-sm">
      <CardHeader>
        <CardTitle>Project Phoenix</CardTitle>
        <CardDescription>
          A complete rebuild of the analytics dashboard.
        </CardDescription>
        <CardAction>
          <Button variant="ghost" size="sm">
            View
          </Button>
        </CardAction>
      </CardHeader>
      <CardContent className="text-muted-foreground">
        Ship the new reporting suite with live charts, exports, and shareable
        links by the end of the quarter.
      </CardContent>
      <CardFooter className="justify-between border-t">
        <span className="text-muted-foreground text-sm">Updated 2h ago</span>
        <Button size="sm">Open</Button>
      </CardFooter>
    </Card>
  )
}
```
