Skip to main content

Module kbd

Module kbd 

Source
Expand description

Kbd — monospaced keyboard-shortcut chip (M-UI.1 / AUT-121).

Wraps each key glyph in a <kbd> element. The component takes a keys prop — a slice of &'static str — so the caller composes ["⌘", "⇧", "R"] and the renderer emits <kbd>⌘</kbd><kbd>⇧</kbd> <kbd>R</kbd> with a thin separator glyph between each key.

Structs§

KbdProps
Props for the Kbd component.

Functions§

Kbd
Required Props