# Hero — centred (motion)

> The centred hero, with its parts appearing one after another when the page loads.

Facade UI item `hero-centered-motion` (block, motion).
Docs page: https://facadeui.dev/components/hero-centered-motion · Registry JSON: https://facadeui.dev/r/hero-centered-motion.json

## Install

```bash
npx shadcn@latest add @facade/hero-centered-motion
```

Or by URL: `npx shadcn@latest add https://facadeui.dev/r/hero-centered-motion.json`. The CLI also installs what it needs: @facade/hero-centered, @facade/motion-primitives.

Files: `components/sections/hero-centered-motion.tsx`

Usage example as an installable item: `npx shadcn@latest add @facade/hero-centered-motion-demo` (lands in components/examples/).

## Usage

The source of the preview on the docs page. `./content` holds sample data.

```tsx
"use client"

/**
 * The `hero-centered` demo, with the motion variant swapped in.
 *
 * Identical props: the motion variant only changes which slot components
 * the static section renders through.
 *
 * `"use client"` is required here, not incidental: the motion variant is a
 * client component, and icon components cannot cross a server-to-client
 * boundary as props. See the note on `IconComponent`.
 */

import { Badge } from "@/components/ui/badge"
import { HeroCenteredMotion } from "@/components/sections/hero-centered-motion"

import { ACTIONS } from "./content"

export function Demo() {
  return (
    <HeroCenteredMotion
      banner={<Badge variant="outline">v0.1 is out</Badge>}
      eyebrow="Free and open source"
      title="The front of every great website"
      description="Marketing sections and a design system you install with the shadcn CLI. The source lands in your project — yours to read, change and own."
      actions={ACTIONS}
      note="MIT licensed. No account, no gating."
      headingLevel={1}
      spacing="md"
    />
  )
}
```
