NOCTA UI

Kbd

Display keyboard shortcuts and key hints with consistent styling that adapts to themes and variants.

Installation

Install the Kbd component using the nocta-ui CLI:

npx @nocta-ui/cli add kbd

Then import the component:

import { Kbd } from '@/components/ui/kbd';

Examples

Default Shortcut

PressCtrl+Kto open search

Sizes

TabShiftSpace

API Reference

Prop

Type