# Cover Card

Image card for blog posts and portfolios with a full-bleed cover that zooms while the whole card lifts on hover or focus, plus header, title, description, action and a one-line truncated footer.

Component · Card · https://01orbital.dev/docs/components/cover-card

## Installation

```bash
npx shadcn@latest add @01orbital/cover-card
```

## Usage

```tsx
import { CoverCard } from "@/components/card/cover-card"
import {
  Section,
  SectionContent,
} from "@/components/section/section"

const COPY = {
  items: [
    {
      title: "Halcyon",
      description: "Technology",
      image:
        "https://01orbital.dev/art/kit/celestograph-369187-meridian-1b.png",
      footer: "A support workspace built around palette-driven agents",
    },
    {
      title: "Lantern",
      description: "Healthcare",
      image: "https://01orbital.dev/art/kit/celestograph-61495-gesso-2b.png",
      footer: "Lantern's intake agent greets patients in calm teal",
    },
  ],
} as const

export default function CoverCardDemo() {
  return (
    <Section>
      <SectionContent className="items-center">
        <div className="grid w-full max-w-4xl gap-5 sm:grid-cols-2">
          {COPY.items.map((item) => (
            <CoverCard
              key={item.title}
              className="aspect-square"
              title={item.title}
              description={item.description}
              href="#"
              linkLabel={`Read about ${item.title}`}
              image={{ src: item.image }}
              footer={item.footer}
            />
          ))}
        </div>
      </SectionContent>
    </Section>
  )
}
```

This example installs with everything it uses:

```bash
npx shadcn@latest add @01orbital/cover-card-demo
```

## API reference

A card with a picture cover: a title and description with a round arrow link, the picture edge to edge below, and one line under it. It is the kit's `Card` and its parts, styled. On hover, or while its link has focus, the card lifts, its shadow deepens and the picture zooms in slightly; with reduced motion only the shadow changes.

Give the card a height, for example `aspect-square`, so the picture has room to fill. Long text stays on one line and ends in an ellipsis.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `title` | `ReactNode` |  | The card's heading, read as a level-3 heading. |
| `description?` | `ReactNode` |  | One muted line under the title, such as a category. |
| `href?` | `string` |  | Where the round arrow link goes. Without it, there is no link. |
| `linkLabel?` | `string` |  | The arrow link's accessible name, such as "Read about Leonia". |
| `image` | `{ src: string; alt?: string; }` |  | The cover picture. It fills the cover and is cropped to fit. |
| `footer?` | `ReactNode` |  | One line of text under the picture. |

## Dependencies

Requires these pieces. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:

- [Button](https://01orbital.dev/docs/components/button)
- [Card](https://01orbital.dev/docs/components/card)

The shadcn parts here are their Base UI versions, and this piece uses Base UI's API. A Radix version you already have won't work with it.

npm: `@phosphor-icons/react`, `cn`
