Misprint Hero

Misprint Hero

A hero headline printed as three colour-separation plates that fly in misregistered and spring into register — the cursor pulls the print slightly out of true again.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/misprint-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/misprint-hero.tsx
  4. Import and use.

API Reference

PropTypeDefaultDescription
headlinestringThe headline printed in three colour-separation plates.
kickerstringSmall mono line above the headline.
subheadlinestringSupporting line under the headline.
childrenReact.ReactNodeCTA row rendered under the subheadline.
heightnumber520Hero height in px.
driftnumber7How far the plates drift apart as the cursor moves, in px.
classNamestringAdditional CSS classes.