Back to Components
Inputs

Search Input

Command palette style search input with icon, keyboard shortcut hint (Cmd+K), and focus states with accent color.

Cmd+K

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/search-input.tsx

Installation

Using shadcn CLI

npx shadcn add search-input --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge