Centered hero with prominent search input field and popular search suggestion pills below. Perfect for documentation sites, knowledge bases, and support centers.
Centered hero built around a single prominent search field, sized like a help center's main entry point, with a row of pill-shaped "popular search" shortcuts underneath.
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/hero46?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/hero46?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/hero46.tsx and its shadcn/ui dependencies: Badge, Button, Input.
The installed file exports hero46Demo alongside the block: the exact props behind the preview above. Spread it to get a working hero in one line.
import { Hero46, hero46Demo } from "@/components/beste/block/hero46";
export default function Page() {
return <Hero46 {...hero46Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Hero46 } from "@/components/beste/block/hero46";
export default function Page() {
return (
<Hero46
badge={{ label: "Knowledge Base", variant: "secondary" }}
heading="How can we help you today?"
description="Search our documentation, guides, and tutorials."
searchPlaceholder="Search for articles, tutorials, guides..."
searchButtonLabel="Search"
popularSearches={[
{ label: "Getting started", href: "/docs/getting-started" },
{ label: "API reference", href: "/docs/api" },
{ label: "Billing", href: "/docs/billing" },
]}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
badge | { label: string; variant?: "default" | "secondary" | "outline" } | – | Pill above the heading |
heading | string | – | Main heading |
description | string | – | Supporting paragraph |
searchPlaceholder | string | – | Placeholder text in the search input |
searchButtonLabel | string | – | Label on the submit button |
popularSearches | PopularSearch[] | [] | Shortcut pills rendered under the search form |
className | string | – | Extra classes for the outer <section> |
type PopularSearch = { label: string; href: string };<form> whose onSubmit calls preventDefault() and does nothing else: the block ships as a static UI shell, so wiring the field's value and submit handler to a real search route is left to the consumer.Search icon is absolutely positioned inside the input (absolute left-4 top-1/2 -translate-y-1/2), with pl-12 on the Input reserving space for it so the icon never overlaps typed text.popularSearches renders as outline, rounded-full, size="sm" buttons wrapping next/link, preceded by a static "Popular:" label; the row wraps with flex-wrap on narrow viewports instead of scrolling horizontally.max-w-4xl; there is no image or split layout variant.Wiring the form up
This block ships the form markup only; state, validation, and submit are yours to add. Our guide wires the shadcn Field primitives to React Hook Form, TanStack Form, and Formisch on one field system.
hero7
Centered hero with optional badge, heading, description, dual action buttons, and a featured image below. Perfect for product launches and landing pages.
hero71
Centered hero with prominent price display, period label, and horizontal feature checklist. Perfect for freemium products and pricing-focused landing pages.
hero63
Centered hero with checklist of recent updates showing new badges and completion icons. Perfect for changelog pages and product update announcements.
hero68
Centered hero with three feature highlights displayed as icon cards with descriptions below the CTA. Perfect for platform and infrastructure products.
hero126
Centered waitlist hero with eyebrow, big heading, description, an inline email-capture form and an overlapping avatar trust row.
hero144
A centered hero with an eyebrow pill, a large light heading, a supporting paragraph, two accent buttons, and a wide image tile below that floats a live product micro-asset.