An announcement, a big promise and two actions, centered on a glow with a faint grid, and the customers below.
$ pnpm dlx shadcn@latest add @dashral/hero-centeredWhen to use
- The top of a landing page: an announcement, the promise, two actions and the customers below.
- Launches and home pages where one clear message matters more than showing the product.
When not to use
- When the product sells itself on sight: Split hero or Product hero show it.
- Sign-ups that are just an email: Sign-up hero.
Usage
Centered hero with your own data: every prop has the sample as its default, so pass only what you have.
import { HeroCentered } from "@/components/dashral/blocks/hero-centered"
<HeroCentered
announcement={{ label: "New", text: "AI reports are here", href: "/changelog" }}
title="Dashboards your team actually opens"
description="Connect your data in minutes and share live numbers with everyone."
primary={{ label: "Start free", href: "/register" }}
secondary={{ label: "Book a demo", href: "/demo" }}
logos={customerLogos}
/>API reference
HeroCentered
A centered hero: an announcement, the promise, two actions and the customers who already use it, on a soft glow of the primary color with a faint grid. Each line arrives a moment after the one before. Every part comes from props.
| Prop | Type | Default |
|---|---|---|
announcement | { label: string; text: string; href: string } | nullThe pill above the headline; null hides it. | sample |
title | React.ReactNode | sample |
description | React.ReactNode | sample |
primary | BlockAction | sample |
secondary | BlockAction | nullThe second button; null hides it. | sample |
note | React.ReactNodeA line under the buttons; none hides it. | sample |
logosTitle | string | "Trusted by teams at" |
logos | typeof sampleLogosYour customers: a name with an icon, or a logo of their own; none hides the row. | sample |
type BlockAction
A button: a link with href, or your handler with onClick.
| Prop | Type | Default |
|---|---|---|
label | string | — |
href | string | — |
onClick | () => void | — |