Staaarter

AI Search Hero

A centered hero section built around a prominent, pill-shaped search input with a submit icon-button inside it, and a row of suggestion pills underneath. Clicking a pill fills the input with that suggestion, giving visitors a quick, tactile sense of the search experience.

By Staaarter Team
Chat
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/ai-search-hero.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/chat/chat17.tsx instead.

Usage

The file also exports chat17Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Chat17, chat17Demo } from "@/components/blocks/chat/chat17";

export default function Page() {
  return <Chat17 {...chat17Demo} />;
}

Props

PropTypeDefaultDescription
headingstring"Ask anything"Hero heading.
descriptionstring"Search the web, get instant answers..."Hero subheading.
suggestionsstring[]noneSuggestion pills rendered below the search input.
classNamestringnoneExtra classes for the outer section element.

Behavior notes

  • Clicking a suggestion pill is real: it sets the controlled Input's value via useState, same pattern as the suggestion cards in the Rich Prompt Input block.
  • The submit icon-button inside the search bar is decorative and does not perform a search or call any API.
  • Uses normal py-16 sm:py-24 section framing (not full-viewport), since this is a hero section meant to sit within a longer landing page.