Hero Aurora

Hero Aurora is a motion-first product hero block for Payload CMS with an animated, token-tinted aurora background, staggered text and panel reveals, a pointer-parallax product panel, and a count-up metric ticker. It is built on the motion package and the badge UI component.

block · no preview
This item cannot be built as published, so there is no live preview: build: ✗ Build failed in 124ms
See how it was built

Installation

pnpm dlx shadcn@latest add @payload-components/hero-aurora

Requires @payload-components in the registries of your components.json (shadcn adds official directory namespaces automatically).

Usage

usage.tsx
import { HeroAuroraBlock } from '@/blocks/HeroAurora/Component'export default function Page() {  return (    <HeroAuroraBlock      description='Ship faster with a CMS that stays out of your way.'      eyebrow='New in 2.0'      title='Build pages that move people'      metrics={[{ label: 'Uptime', value: '99.99%' }]}    />  )}
  • Use as the top-of-page hero for a product, SaaS, or launch landing page managed in Payload CMS.
  • Use when you want a premium, animated first impression with a metric strip and a product screenshot or a token-tinted dashboard placeholder.
  • Use when the site needs themed colors that re-tint automatically under different theme scopes.
  • Avoid on content-heavy pages or where motion must be minimal; the block animates on load and on pointer movement.

Examples

Hero with a product image and caption

Passes an uploaded Media resource so the panel shows the screenshot instead of the token-derived dashboard glow.

hero-with-a-product-image-and-caption.tsx
import { HeroAuroraBlock } from '@/blocks/HeroAurora/Component'const media = { alt: 'Dashboard screenshot', filename: 'dashboard.png', url: '/media/dashboard.png', width: 1600, height: 900, updatedAt: '', createdAt: '' }export function ProductHero() {  return (    <HeroAuroraBlock      description='See every release, error, and deploy in one place.'      eyebrow='Observability'      imageCaption='Live deploy view'      productImage={media}      title='Know what shipped and why'    />  )}

Metrics and proof badges

Shows the count-up ticker with prefixed, suffixed, and grouped numbers, plus proof chips below the metrics.

metrics-and-proof-badges.tsx
import { HeroAuroraBlock } from '@/blocks/HeroAurora/Component'export function TrustHero() {  return (    <HeroAuroraBlock      description='Trusted by teams shipping on every continent.'      disableInnerContainer={false}      metrics={[        { label: 'Customers', value: '12,400+' },        { label: 'Requests / day', value: '$1.2M' },        { label: 'Uptime', value: '99.99%' },      ]}      proofItems={[{ label: 'SOC 2' }, { label: 'GDPR' }, { label: 'ISO 27001' }]}      title='Scale without the operations tax'    />  )}

Full-bleed hero without the inner container

Disables the centered max-width wrapper so the composition can stretch to the section width.

full-bleed-hero-without-the-inner-container.tsx
import { HeroAuroraBlock } from '@/blocks/HeroAurora/Component'export function WideHero() {  return (    <HeroAuroraBlock      className='py-8'      description='A composable CMS for teams that ship daily.'      disableInnerContainer      id='hero'      title='The content platform for modern teams'    />  )}

API reference

PropTypeDefaultDescription
titlestring—Headline. The last word is rendered in italic serif brand color; each word animates in with a staggered spring.
descriptionstring—Supporting paragraph shown under the headline.
eyebrowstring | null | undefined—Small badge text above the headline. Omitted when empty.
linksArray<{ link: CMS link fields }> | null | undefined—CTA links from the shared linkGroup field, rendered with CMSLink. Up to two. A link with appearance 'outline' renders as an outline button; anything else renders as default.
metricsArray<{ value: string; label: string }> | null | undefined—Up to three metric entries. Numeric values count up on mount; unparsable values stay static.
productImageMedia | number | null | undefined—Uploaded media for the product panel. When set, replaces the token-derived dashboard glow and its KPI chips.
imageCaptionstring | null | undefined—Caption shown under the product panel.
proofItemsArray<{ label: string }> | null | undefined—Up to four pill-shaped proof badges below the metrics. Hidden in the default glow state only by absence of entries.
classNamestring—Extra classes applied to the outer section element.
idstring—Optional anchor id. Rendered on the section as block-{id}.
disableInnerContainerboolean—When true, skips the centered max-width wrapper around the content.

Accessibility

  • The headline is provided as visually hidden text for screen readers, while the per-word animated spans are aria-hidden to avoid fragmented announcements.
  • Decorative layers (aurora field, dashboard glow, KPI chips, ground shadow, sheen, glass highlight) are marked aria-hidden.
  • Metric values use a dd/dt pair inside a dl. A hidden ghost copy of the final value reserves width, so screen readers and no-JS users read the finished number.
  • Under prefers-reduced-motion, the component uses zero-duration transitions and a scoped CSS net forces the final frame, also before hydration.
  • Pointer parallax is enabled only for hover-capable fine pointers and is disabled under reduced motion.
  • The section uses semantic h2, p, dl, and figure/figcaption elements; the eyebrow and proof chips are visual badges, so ensure surrounding content provides any needed structure.

Docs written by anthropic:claude-haiku-5-5 from the registry source.

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "Hero Aurora" component (payload-components/hero-aurora) from its shadcn registry.1. Install it with: npx shadcn@latest add @payload-components/hero-aurora2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: title, description, eyebrow, links, metrics, productImage, imageCaption, proofItems, className, id, disableInnerContainer.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { HeroAuroraBlock } from '@/blocks/HeroAurora/Component'export default function Page() {  return (    <HeroAuroraBlock      description='Ship faster with a CMS that stays out of your way.'      eyebrow='New in 2.0'      title='Build pages that move people'      metrics={[{ label: 'Uptime', value: '99.99%' }]}    />  )}```

Files & dependencies

  • payload-components/source/blocks/shared/heroFields.ts→ ~/src/blocks/shared/heroFields.ts
  • payload-components/source/blocks/HeroAurora/config.ts→ ~/src/blocks/HeroAurora/config.ts
  • payload-components/source/blocks/HeroAurora/Component.tsx→ ~/src/blocks/HeroAurora/Component.tsx
dependenciesmotion
registryDependenciesbadge

Looks similar, elsewhere

There is no screenshot of this item to compare yet.