TrademarkTrademark
Docs
Ctrl k
Search docs...
Modules

Kbar

Updated: June 30, 2026
View on GitHub

The Kbar component provides a powerful command palette for your application, allowing users to quickly navigate and perform actions using keyboard shortcuts. It enhances productivity by providing a searchable interface for commands and navigation.

API reference

Type
Default
itemsrequired
The commands, each with a label, an action and optional keywords.
KbarItem[]—
children
React.ReactNode—
inputSize
Size of the search field.
xllmsxs
—
Type
Default
id
string—
name
string—
section
string—
shortcut
string[]—
keywords
string—
href
string—
perform
() => void—
icon
string—
description
ReactNode—
placeholder
string—

KbarItem

Each item in the command palette is defined by the KbarItem interface:

You must provide either href or perform for each item to define what happens when the item is selected.

Accessibility

The Kbar component supports full keyboard navigation:

  • ↑ / ↓: Navigate between items
  • Enter: Select the highlighted item
  • Esc: Close the command palette

Users can also type to search and filter the available commands.

Best practices

  • Keep item names short and descriptive
  • Use icons to make items more recognizable
  • Group related items into logical sections
  • Include relevant keywords to improve search results
  • Provide keyboard shortcuts for frequently used actions
  • Consider adding a visible button to open Kbar for discoverability
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club