Back to components
ComponentHeroFree

Typewriter Search Hero React component

A search-first hero whose box types out example searches by itself, then hands over to real search with live suggestions, highlighted matches and full keyboard support.

About the Typewriter Search Hero component

Typewriter Search Hero makes search the whole first screen. The box types out example searches by itself, which shows people what they can ask for, and stops the moment they click into it.

From there it is a real search box: suggestions filter word by word as you type, matches are picked out in bold, and the arrow keys, Enter and Escape all work. The list opens over the page, so nothing moves underneath it.

When to use it

Use it on marketplaces, directories, help centres, job boards and travel sites, where the next step is always a search.

If people need a pitch before they would search, lead with a regular hero and put search further down.

Installation

Add the Typewriter Search Hero component to your project with the shadcn CLI. It lands in components/typewriter-search-hero.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/typewriter-search-hero

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install clsx tailwind-merge

More Hero components

Phone Fan Hero
Free
Spotlight Cursor Hero
Free
Tile Flip Hero
Free
Parallax Layers Hero
Free
Bento Hero
Free
Video Text Mask Hero
Free