2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
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.
Prop
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
Prop
Type
Default
id
string
name
string
section
string
shortcut
string[]
keywords
string
href
string
perform
() => void
icon
string
description
ReactNode
placeholder
string
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. 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.
  • 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