Woodblock Hero

Woodblock Hero

A woodblock-print sunrise hero — vermillion sun rising behind layered indigo hills, paper-coloured mist between the ridges, and gentle depth parallax as the cursor moves.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/woodblock-hero.json

▸ Or install manually

  1. Install dependencies: pnpm add motion
  2. Copy the source from the Code tab above.
  3. Place it at components/mellow/woodblock-hero.tsx
  4. Import and use.

API Reference

PropTypeDefaultDescription
headlinestringMain headline set over the sky.
kickerstringSmall mono line above the headline.
subheadlinestringSupporting line under the headline.
childrenReact.ReactNodeCTA row rendered under the subheadline.
heightnumber560Hero height in px.
parallaxnumber1Parallax strength multiplier — 0 disables.
classNamestringAdditional CSS classes.