Skip to Content

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.

View as Markdown
pnpm dlx shadcn add @01orbital/cover-card

The example also uses section. Install it too:

pnpm dlx shadcn add @01orbital/section

Usage

import { CoverCard } from "@/components/card/cover-card"

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

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: @phosphor-icons/react, cn. The CLI installs them for you. cn merges Tailwind class names, in place of clsx and tailwind-merge.

Registry pieces it installs with it: