Skip to Content

Poster Hero

Poster hero with a bottom-anchored layout: a large headline above a footer row that holds the description on one side and link buttons on the other. Pass any background behind it.

Installation

pnpm dlx shadcn@latest add @01orbital/poster-hero

Usage

import { PosterHero } from "@/components/hero/poster-hero"

Needs props to render

Pass title; see the API reference below.

Examples

Eclipseposter-hero-eclipse

Poster hero example: a dark PosterHero over an Orbital Limb Scene with the eclipse orb, announcing a rooftop eclipse night with two actions.

pnpm dlx shadcn@latest add @01orbital/poster-hero-eclipse

API reference

The block that picks the background decides dark or light, not this.

Prop

Type

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

Dependencies

npm: cn. The CLI installs it for you.

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

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.

Last updated on