Search our documentation, guides, and tutorials to find answers to your questions.
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.
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/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.
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.
hero7
Centered hero with optional badge, heading, description, dual action buttons, and a featured image below. Perfect for product launches and landing pages.
hero171
A centered hero whose main action is a search field rather than a button, with the week's most looked-up terms as chips beneath it and the size of the archive stated at the bottom.
hero71
Centered hero with prominent price display, period label, and horizontal feature checklist. Perfect for freemium products and pricing-focused landing pages.