What's new
The Hero category had one block in it. It now has 68 more, and you can preview and install each one like any other block.
While planning them we went through a lot of hero sections, and most shared one layout: a pill, a centered headline, two buttons and a row of logos. We left that layout out and gave every hero its own composition, its own made-up brand and its own copy. Some will suit your product and some clearly won't. There's a split-flap departure board in there.
The seven groups
Product screens
Sixteen heroes built around an app: a revenue dashboard, an issue tracker, an inbox whose open email is the headline, a room calendar for small hotels. The mobile ones include a bank payment told across five phones and a recipe timer. The screens are coded, so you can replace our data with yours.
SaaS
Fourteen for software companies. One is a spreadsheet you can edit. Another is a wall of feature flags that restyle the hero when you flip them, and there's an agent run that stops until someone presses Approve.
Video
Eight heroes with film in them: full-bleed, inside the letters of a headline, behind an arched window, cut into five tall strips. Each one can be paused.
Coded animation
Seven that draw their own artwork on canvas or with plain elements, such as wind around turbines, an isometric city colored by rent and a tile pattern you can regenerate. They use no animation library.
Photography, interface and interactive
Nine lead with photography, including prints you can drag around a desk and a magazine cover. Seven more are built from pieces of interface, like a street map with a courier on it. The last seven ask the visitor to do something: move a slider and a receipt prints, or drag a divider across a landscape to compare two edits.
They follow your theme
Headlines use your theme's heading font, or your body font if it doesn't have one. Colors come from your tokens and corners from your radius. The canvas heroes read the tokens too, so they redraw when the theme changes. A few headlines measure themselves and resize, because a wide mono font and a narrow serif need very different space.
The Default theme's chart colors are grey, so some of these look monochrome until you switch. Try them in Coral, Ocean or Paper with the theme menu in the Blocks sidebar.
Install one
With a Pro plan, run npx shadcn@latest add @shadcnpro/hero-02. Every hero comes in Radix UI, Base UI and React Aria; for the other two, use @shadcnpro/base/hero-02 or @shadcnpro/aria/hero-02.
The videos stream from our storage and the photos come from Unsplash, which is fine while you're trying things out. Swap in your own media before you launch. The URLs sit near the top of most files.
What to check before you ship
Read the copy twice. The brands, prices and numbers are invented and specific enough to slip through. Everything respects reduced motion, but the canvas heroes do more work than a static section, so test them on an older phone.
All of them are on the Hero page.
