A full-height photographic hero with everything centred: the photograph zooms out on load and drifts slower than the page under a dark scrim and film grain, beneath an eyebrow, a serif headline that settles in word by word, an intro and two sliding-marker pills.
A full-screen centred hero: the photograph clears from a blur and drifts under an ink wash and film grain, with the headline settling in word by word above an intro and a pair of pale pills.
Upgrade to Pro
Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.
Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.
Radix flavor
npx shadcn add "https://ui.beste.co/r/hero182?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/hero182?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/hero182.tsx plus the button22 sliding-marker pill and the text1 word stagger it uses.
The installed file exports hero182Demo alongside the block: the exact props behind the preview above. Spread it to get a working hero in one line.
import { Hero182, hero182Demo } from "@/components/beste/block/hero182";
export default function Page() {
return <Hero182 {...hero182Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Hero182 } from "@/components/beste/block/hero182";
export default function Page() {
return (
<Hero182
eyebrow="Altair, Lisbon"
heading="Come as you are. Stay as long as it takes."
description="Therapy and coaching for the seasons when the usual things stop working."
buttons={[
{ label: "Begin here", href: "/book", tone: "light" },
{ label: "Meet the practitioners", href: "/team", tone: "outline" },
]}
image={{ src: "/photos/hills.jpg", alt: "Soft fog rolling over layered green hills" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | – | Small-caps line above the headline |
heading | string | – | Headline, rendered as the page h1 through Text1 |
description | string | – | Paragraph under the headline |
buttons | ActionButton[] | [] | Pill actions; each defaults to the light tone on this dark hero |
image | { src: string; alt: string } | – | Full-bleed background photograph |
className | string | – | Extra classes for the outer <section> |
type ActionButton = {
label: string;
href: string;
tone?: "primary" | "light" | "dark" | "outline";
};min-h-svh section, so the hero holds its composition at any viewport height rather than being pinned to the top.light tone rather than primary, which is right here: the hero is dark, so an unspecified button should come out pale instead of taking the brand colour.1.12 scale and blur(24px) on decode, with a complete check on mount because a cached image fires its load event before hydration and would otherwise stay blurred.26% against the page as it scrolls away, so the section keeps moving even though the copy inside it does not.foreground/55 rather than a gradient, because the copy is centred rather than sitting at the foot and needs even contrast across the whole frame.useId, so two grain surfaces on one page cannot collide on a global SVG id.trigger="mount", and the copy waits on 0.4 + heading.split(" ").length * 0.07 so it lands as the last word settles.hero176
A centred hero: eyebrow, a serif headline settling in word by word, intro and two sliding-marker pills, then a wide photograph that unveils itself from a smaller inset frame and keeps drifting as the page scrolls, closed by a row of dotted facts.
hero187
A centred photographic hero built around a search field: the photograph blurs in and drifts slower than the page under a dark scrim and film grain, a serif headline settles in word by word, then a rounded search field with a keyboard shortcut hint, a row of quick links and optional pills. The field can hand its click to a command palette instead of being a form.
hero159
A centered hero with an eyebrow, light display heading, and two actions above a staggered three-photo collage whose raised middle tile floats a live booking confirmation.
hero185
A centred hero with an eyebrow, a serif headline that settles in word by word, an intro and a sliding-marker pill, closed by a ruled row where greyscale partner logos drift right to left behind soft edge fades, next to a small-caps label.