sigilUI

Kbd

Display a keyboard key or shortcut in a compact label.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { Kbd, KbdGroup } from "@sigil-ui/components";

Usage

<Kbd>Kbd example</Kbd>

Sub-components

This component includes the following parts:

  • <KbdGroup>

Token integration

CSS VariablePurpose
--s-radius-smRadius sm
--s-borderBorder
--s-border-styleBorder style
--s-surfaceSurface
--s-font-monoFont mono
--s-text-mutedText muted