# Marketing Hero Section: Search Bar

A hero centered on a prominent search bar below a headline and subtext. Ideal for directories, docs, marketplaces, and content heavy landing pages.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/search-bar
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing), Free tier
- Group: [Hero Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/search-bar.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-hero-sections-search-bar
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/marketing-hero-sections-search-bar.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button, input
- Installs to: `@/components/blocks/marketing/hero-sections/search-bar`

## About this block

Search Bar Hero opens with a small pill-shaped announcement banner centered
at the top, followed by a large centered headline and a one-line description.
Below the copy sits a full-width pill input with an icon button flush to its
right edge. Under the input, a row of outline pill buttons lists popular search
terms. The section closes with a three-column stat row showing a headline
number and a short label in each column.

Every piece of copy here is independent. The announcement banner can be
removed or reworded without affecting anything else. The popular-search
buttons are a plain mapped list, so you can add, remove, or relabel terms
freely. The three stats are also self-contained, so you can swap the numbers
and labels to match your own data.

## When to use

Reach for this block when the primary action on a page is finding something
rather than signing up or buying. It fits creative agency portfolios and
project directories where visitors arrive looking for a specific case study,
service, or team. It also works well for knowledge bases and content
libraries where the volume of material makes search the natural entry point.
Compared to a simple centered hero with a single CTA button, this layout
communicates depth and signals that a large catalog sits behind the page.

A natural flow around it on a Marketing (Legacy) page:

**Before**

- [Announcement Banners](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners) to carry
  a campaign or release message above the fold before the hero loads
- A short nav or nothing at all, since the banner inside the block already
  carries contextual news

**After**

- [Feature Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/feature-sections) to explain what
  the search covers once a visitor wants more context
- [Testimonials](https://www.shadcn-ui-blocks.com/blocks/marketing/testimonials) to back up the satisfaction
  stat with real quotes from users

## What you can display

The search input is the centerpiece, and the surrounding elements frame the
scale of what it searches. A few directions this block suits well:

- **A curated work archive.** Point the search at a filtered list of case
  studies and use the popular-term buttons to surface your most requested
  categories of creative work.
- **A resource or tutorial library.** Swap the stats for article count,
  author count, and average rating to give first-time visitors a sense of
  the library's breadth before they type.
- **A vendor or freelancer directory.** Replace the popular searches with
  common skill tags so visitors can jump straight to the results that match
  their hire brief.

> Tip: keep the popular-search row to four or five short terms so the pills
> fit a single line on most screens and the layout stays clean.

## More in Marketing Hero Sections

- [3D Isometric Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/3d-isometric-hero)
- [Animated Features Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/animated-features-hero)
- [Animated Gradient](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/animated-gradient)
- [Animated Text Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/animated-text-hero)
- [Centred With Image](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/centred-with-image)
- [Chat Preview Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/chat-preview-hero)
- [Countdown Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/countdown-hero)
- [Gradient Background](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/gradient-background)
- [Gradient Mesh Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/gradient-mesh-hero)
- [Image Carousel Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/image-carousel-hero)
- [Image With Reviews](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/image-with-reviews)
- [Interactive Metrics](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/interactive-metrics)
- [Mobile App Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/mobile-app-hero)
- [Multi-Step CTA Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/multi-step-cta-hero)
- [Particles Background Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/particles-background-hero)
- [Product Carousel Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/product-carousel-hero)
- [Progress Tracker Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/progress-tracker-hero)
- [Simple Centred](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/simple-centred)
- [Social Proof Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/social-proof-hero)
- [Split Content Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/split-content-hero)
- [Split Image Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/split-image-hero)
- [Split With Video](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/split-with-video)
- [Testimonial Carousel](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/testimonial-carousel)
- [Trust Indicators](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/trust-indicators)
- [Video Background Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/video-background-hero)
- [With 3D Mockup](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-3d-mockup)
- [With API Preview](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-api-preview)
- [With App Showcase](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-app-showcase)
- [With Bento Grid](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-bento-grid)
- [With Code Preview](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-code-preview)
- [With Content Tabs](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-content-tabs)
- [With Dashboard](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-dashboard)
- [With Email Input](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-email-input)
- [With Feature Cards](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-feature-cards)
- [With Feature Timeline](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-feature-timeline)
- [With Integration Showcase](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-integration-showcase)
- [With Product Screenshots](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-product-screenshots)
- [With Team Grid](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-team-grid)
- [With Terminal](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-terminal)
