Hero: plates
Hero that shows a page as a stack of section plates.
Preview
As the section scrolls into view, the plates slide in from alternating sides and settle into a page. With reduced motion turned on, it renders the plain layout.
A whole page, plate by plate
Show what visitors get as a stack of sections. Sample copy.
- Navbar
- Hero
- Logo cloud
- Pricing
- FAQ
- Footer
A whole page, plate by plate
Show what visitors get as a stack of sections. Sample copy.
- Navbar
- Hero
- Logo cloud
- Pricing
- FAQ
- Footer
Installation
Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.
Usage
import { HeroPlates } from "@/components/custom/hero-plates";
<HeroPlates
title="A whole page, plate by plate"
plates={[{ label: "Navbar" }, { label: "Hero" }, { label: "Pricing" }, { label: "Footer" }]}
/>import { HeroPlatesMotion } from "@/components/custom/hero-plates/hero-plates-motion";
<HeroPlatesMotion title="A whole page, plate by plate" plates={plates} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title* (required) | string | – | The headline, rendered as the page's h1. |
| eyebrow | string | – | Small badge above the title. |
| description | string | – | Supporting line under the title. |
| primaryAction | { label: string; href: string } | – | Filled button. |
| secondaryAction | { label: string; href: string } | – | Outline button. |
| plates* (required) | { label: string; content?: ReactNode }[] | – | The parts of the page, top to bottom. 3 to 6 read best. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
| Prop | Type | Default | Description |
|---|---|---|---|
| title* (required) | string | – | The headline, rendered as the page's h1. |
| eyebrow | string | – | Small badge above the title. |
| description | string | – | Supporting line under the title. |
| primaryAction | { label: string; href: string } | – | Filled button. |
| secondaryAction | { label: string; href: string } | – | Outline button. |
| plates* (required) | { label: string; content?: ReactNode }[] | – | The parts of the page, top to bottom. 3 to 6 read best. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
Accessibility
- Plates are a list in reading order.
- The motion version follows the visitor's reduced-motion setting and never hides content before it animates.