StealThis .dev

Filter Search Bar

Inline search input with scrollable category pill filters, active state, result counter, and keyboard shortcut hint.

Open in Lab
css javascript
Targets: HTML

Code

A horizontal filter bar combining a text search input with scrollable category pill buttons. Clicking a pill activates it (visually highlighted) and updates a result count. The search input supports a ⌘K keyboard shortcut hint.

Features

  • Text search with live result count
  • Pill-style category filters with active/inactive states
  • Horizontally scrollable pill row for many categories
  • ⌘K shortcut hint in the search field
  • Clears active filter when clicking the already-active pill

When to use

  • Component/resource library browsing pages
  • Dashboard tables with category filters
  • Any grid that needs quick type-and-filter UX