Back to components
Command K Hint React component

What is this?

A compact search trigger for a header: a search icon, a quiet label, and keycaps that read ⌘K on Apple devices and Ctrl K elsewhere. The keys lift on hover and sink when you click or press the shortcut. Swap the label and keys, wire onClick to your own palette, then drop it into a docs or app header.

Component

Command K Hint

A compact search trigger for a header: a search icon, a quiet label, and keycaps that read ⌘K on Apple devices and Ctrl K elsewhere. The keys lift on hover and sink when you click or press the shortcut. Swap the label and keys, wire onClick to your own palette, then drop it into a docs or app header.

Checking access…
Live Preview

Verified Technical Spec

Animation
CSS / Tailwind
Reduced motion
Verified
Keyboard focus
Verified
Compatibility
Tailwind CSS v3.4 + v4 · React 19 / Next.js 15 App Router + Vite / Remix compatible

Included

  • Copy source into Cursor or Claude for agent install
  • Finished React · TypeScript · Tailwind CSS · Lucide UI

Dependencies

  • React 19.0.0
  • Typescript 5.7.2
  • Tailwindcss 3.4.16
  • Lucide-react 1.23.0

Tech Stack

  • React
  • TypeScript
  • Tailwind CSS
  • Lucide

Version 1.0.0