Search Hero with Popular Tags

Centered hero with prominent search input field and popular search suggestion pills below. Perfect for documentation sites, knowledge bases, and support centers.

PRO

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.

Installation

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

bash
npx shadcn add "https://ui.beste.co/r/hero46?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
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.

Quick start

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.

tsx
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:

tsx
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" },
      ]}
    />
  );
}

Props

PropTypeDefaultDescription
badge{ label: string; variant?: "default" | "secondary" | "outline" }Pill above the heading
headingstringMain heading
descriptionstringSupporting paragraph
searchPlaceholderstringPlaceholder text in the search input
searchButtonLabelstringLabel on the submit button
popularSearchesPopularSearch[][]Shortcut pills rendered under the search form
classNamestringExtra classes for the outer <section>
ts
type PopularSearch = { label: string; href: string };

Behavior notes

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.

More Hero blocks

View all Hero
FREE

hero7

Centered Hero with Media

Centered hero with optional badge, heading, description, dual action buttons, and a featured image below. Perfect for product launches and landing pages.

PRO

hero71

Pricing Preview Hero

Centered hero with prominent price display, period label, and horizontal feature checklist. Perfect for freemium products and pricing-focused landing pages.

FREE

hero63

Changelog Hero with Updates List

Centered hero with checklist of recent updates showing new badges and completion icons. Perfect for changelog pages and product update announcements.

FREE

hero68

Centered Hero with Feature Icons

Centered hero with three feature highlights displayed as icon cards with descriptions below the CTA. Perfect for platform and infrastructure products.

PRO

hero126

Waitlist Email Hero

Centered waitlist hero with eyebrow, big heading, description, an inline email-capture form and an overlapping avatar trust row.

PRO

hero144

Centered Product Hero

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.