Gradient Mesh Hero

A hero over four soft colour fields that drift on slow offset orbits and lean toward the pointer, with fine grain, a glass eyebrow pill and a blur-staggered headline.

Try it: Move the pointer across the hero.

Brings its own background. Paints its own white/ink surface behind the mesh; override with className.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/gradient-mesh-hero.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/gradient-mesh-hero. You can also copy the source into components/ui/gradient-mesh-hero.tsx (view on GitHub).

Usage

import { GradientMeshHero } from '@/components/ui/gradient-mesh-hero'

Props

Component props
PropTypeDefaultNotes
eyebrow / title / descriptionstring / ReactNode—Copy.
primaryLabel / secondaryLabel / onPrimary / onSecondarystring / () => void—CTAs.
colors[string, string, string, string]indigo / pink / amber / cyanMesh colours.

Dependencies

  • motion
  • lucide-react
  • Morph Button Modal

    A pill button that physically becomes its dialog: the surface expands on a shared-layout spring, the label blurs into a form, and submit shrinks it back into a success pill. Focus trapped and…

  • Liquid Glass Tab Bar

    An iOS 26-style floating glass tab bar: a refractive lens slides between tabs and stretches with distance like liquid, icons pop on select, plus a floating accessory button.

  • Kinetic Stats Band

    A band of big tabular numbers that count up on an expo curve when scrolled into view, with motion blur on the fast part and sparklines that draw themselves.

  • App Store Expand Card

    Story cards that grow into a full detail sheet with a shared-layout spring: art, headline and surface morph from the card, the body rises in behind. Esc or close collapses it and returns focus.

  • Parallax Depth Stack

    A fanned card stack on CSS 3D layers: the pointer tilts it and each layer parallaxes by depth with a moving sheen; click or Enter sends the front card to the back on a spring.

  • Scroll Product Reveal

    An Apple-style pinned product story: scroll scrubs a CSS 3D device through rotation, screen glow and an exploded-layer view while chapter copy cross-fades with a blur. Scrolls inside its own…

See all 15 Motion Showcase components