AsterUIDocsv1.0.2

Docs / Component reference

Kbd & KbdGroup

Show the actual keys a shortcut requires. A keycap labels the shortcut while the application handles the keystroke.

Keyboard keys example

Install

sh
npx @fierst/ui@1.0.2 add kbd

Registry dependencies: theme.

Exports from ./ui/kbd: Kbd, KbdGroup.

Download the registry source for kbd 1.0.2.

API contracts

ts
export function Kbd(props: { class?: string; children?: View })

export function KbdGroup(props: { keys: readonly string[]; class?: string })