Skip to content
daisyBlazor

Kbd

A keyboard key cap for shortcuts and instructions, with three sizes. Use it inline in text or combine keys for chords.
Data display.kbd
Cover · <Kbd>
⌘ + K
▲
◀ ▼ ▶

Press Space to preview a file

Examples

Sizes

Small, Medium (default) and Large.

Esc Tab Space
website/Examples/DataDisplay/KbdSizesExample.razor Source

Shortcuts

Join keys with a plus, or drop one into a sentence.

Ctrl + K Search projects

⌘ + ⇧ + P Command palette

Press Space to preview the selected file.

website/Examples/DataDisplay/KbdShortcutsExample.razor Source

Arrow keys

Lay keys out with flex to draw a cluster.

▲
◀ ▼ ▶
website/Examples/DataDisplay/KbdArrowsExample.razor Source

Playground

⌘ K
Size Size
<Kbd Size="Size.Large">⌘ K</Kbd>

API

<Kbd>

DaisyBlazor

Parameters

  • Size Size
    = Size.Medium

    Size of the key cap. Small → kbd-sm, Medium → kbd-md, Large → kbd-lg (pass kbd-xs / kbd-xl via Class).

  • Class string
    = null

    Extra CSS classes added to the kbd element.

  • Style string
    = null

    Inline CSS style applied to the kbd element.

Content

  • ChildContent RenderFragment

    Content displayed inside the key cap (text or nested elements).

Something went wrong while running the docs. Reload