Cover Card

Card with a full-bleed cover image that zooms while the whole card lifts on hover or focus, plus header, title, description, action and a one-line truncated footer. Built on the stock Card.

Open the preview in a new tab

The source comes with full access.

One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.

Installation

pnpm dlx shadcn add @01orbital/cover-card
npx shadcn add @01orbital/cover-card
yarn shadcn add @01orbital/cover-card
bunx --bun shadcn add @01orbital/cover-card

Part of the 01orbital library. With a license, put ORBITAL_TOKEN in .env.local and the same command installs it (licensed install, pricing).

It lands at components/card/cover-card.tsx, as source you own and edit.

The example also uses section. Install it too:

pnpm dlx shadcn add @01orbital/section
npx shadcn add @01orbital/section
yarn shadcn add @01orbital/section
bunx --bun shadcn add @01orbital/section

Usage

import { CoverCard } from "@/components/card/cover-card"
import {
  Section,
  SectionContent,
} from "@/components/editorial/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>
  )
}

API reference

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.

Registry pieces it installs with it:

On this page