Back to Dictionary
Scroll & Navigation
●●○Customize

Expandable Search Input

Initially just a circular search magnifying glass icon. Upon interaction, it elastically unravels horizontally into a full active text input field.

Live Demo

What It Is

Initially just a circular search magnifying glass icon. Upon interaction, it elastically unravels horizontally into a full active text input field.

When to Use

  • Minimalist headers
  • Mobile navigation bars
  • Secondary toolbars

When NOT to Use

  • Search-centric pages (like Google or E-commerce catalogs) where the search bar must always be fully visible

Configuration Tips

  • 01Animate the width of the container from `40px` (icon size) to `100%` / `300px` within a layout group.

You've Seen It In

Apple.comNotionVarious minimal blogs

Prompt Templates

Copy and paste these prompts into your AI coding assistant.

Build a circular button with a search icon that cleanly expands into a 250px wide text input upon clicking.

Code Example (Tailwind CSS)

export function ExpandableSearchBarDemo() {}