Spotlight Command Palette

A cmdk-style ⌘K launcher: fuzzy grouped results, a highlight that springs between rows, nested pages (Backspace to go back), key-cap hints and full combobox semantics with focus restore.

Try it: Click the chip or press ⌘/Ctrl J here (⌘ K by default in your app); type, ↑ ↓, Enter; open “Invite teammates” for a nested page.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/spotlight-command-palette.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/spotlight-command-palette. You can also copy the source into components/ui/spotlight-command-palette.tsx (view on GitHub).

Usage

import { SpotlightCommandPalette } from '@/components/ui/spotlight-command-palette'

Props

Component props
PropTypeDefaultNotes
itemsPaletteItem[]DEFAULT_PALETTE_ITEMS{ id, label, group, icon?, shortcut?, keywords?, children? }
open / defaultOpen / onOpenChangebooleanfalseControlled or uncontrolled visibility.
hotkeybooleantrueRegister the global ⌘K / Ctrl+K shortcut.
hotkeyKeystring'k'Letter paired with ⌘ / Ctrl.
onSelect(item) => void—Fires when a leaf command runs.

Dependencies

  • motion
  • lucide-react
  • Activity Rings

    Apple Watch-style concentric progress rings: gradient strokes sweep in on a spring, overshooting 100% laps over itself with a shadowed tip, and the legend numbers roll up.

  • Glass App Dock

    A macOS-style dock: icons magnify on a spring with a cosine falloff around the pointer, labels float above, launching bounces the icon and lights a running dot. Keyboard focus magnifies too.

  • Glass Mega Navbar

    A full-width bar that contracts into a floating glass pill on scroll. Menus open into one mega panel that slides between sections with a blur, a hover pill glides between triggers, and phones get a…

  • Changelog Timeline

    Release notes on a timeline with sticky dates, popping dots, generated cover art and a filter (All / New / Improved / Fixed) that re-flows each change list on springs.

  • Pricing Plans

    Three-tier pricing with a sliding monthly/yearly switch whose numerals roll digit by digit, a highlighted ink plan with a light rim, and a “you save” chip that springs in on yearly.

  • Announcement Bar

    A slim ink top bar with a sweeping sheen; messages roll vertically with a blur, dots pick one, hover or focus pauses, and dismissing collapses the height smoothly.

See all 14 Website Sections components