Route Chooser Hero
A fork in the road under a sky that follows your attention: hover or focus the left card and the sun climbs, the right one and the moon rises while a lantern walks that branch. Real buttons or links underneath.
Try it: Hover or Tab between the two route cards — the sky turns and a lantern walks the road.
Brings its own background. Paints its own generated sky, hills and road; the sky shifts between day, dusk and night with your focus, independent of the page theme. Cards carry their own AA-safe surfaces.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/route-chooser-hero.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/route-chooser-hero. You can also copy the source into components/ui/route-chooser-hero.tsx (view on GitHub).
Usage
import { RouteChooserHero } from '@/components/ui/route-chooser-hero'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
routes | [RouteChoice, RouteChoice] | 2 sample routes | { id, label, title, blurb, cta?, href? } — first is the daylight route, second the night route. |
eyebrow / headline | string | — | Small label and the main heading. |
onChoose | (route: RouteChoice) => void | — | Fires on click or Enter. Cards render as <a> when href is set. |
className | string | — | Extra classes merged onto the root. |
Dependencies
motionlucide-react
Related Hero components
- Split-Flap Hero
A landing hero whose key phrase lives on a mechanical departure board — every character clacks through the alphabet on hinged 3D leaves before landing, with flap counters underneath.
- Terminal Dev Hero
A developer intro with a live terminal: commands type with human rhythm, outputs stream in, a build bar fills and the window floats in 3D with the pointer. Pause and replay included.
- Ridgeline Horizon Hero
Headline words rise out of masks above a canvas terrain of stacked ridgelines receding to a sunrise; the pointer raises a swell that rolls back to the horizon and clicks send a ripple.
- Photo Strip Hero
A big headline over two tilted rails of photo cards drifting in opposite directions — they slow under the pointer, surge with scroll velocity and lift on hover.
- Kinetic Name Hero
Your name set huge, every letter on its own spring — letters are pushed away, tilt and swell as the cursor passes, then ease home; a soft light trails the pointer and a badge circles the role.
- Role Morph Hero
“a ____.” where the blank cycles through your roles: letters of the old role drop away with a blur, the next role springs up in a stagger, the highlighter springs to the new width and a colour wash…