EnterUI
DocsComponentsThemesExamplesDonation
Get Started
      • SkipLink
      • ToolbarButton
      • ToolbarGroup
      • CopyButton
      • CodeBlock
      • Kbd
      • VisuallyHidden

Default usage

  1. EnterUI
  2. /Docs
  3. /Layout and Utilities
  4. /Utilities
  5. /Accessibility and Actions
  6. /Kbd
Updated 3 October 2026

Kbd

Compact keyboard key styling.

Kbd defines how EnterUI handles compact keyboard key styling, including default structure, accessible states, and token-driven styling.

#Default usage

Keyboard shortcut

Use separate Kbd elements for each key.

CmdKOpen command menu
Code
<HStack gap={12} wrap>
  <Kbd>Cmd</Kbd>
  <Kbd>K</Kbd>
  <Text as="span" tone="muted">Open command menu</Text>
</HStack>

#Import

Code
import { HStack, Kbd, Text } from "@froggdesign/enter-ui-react";

#Accessibility

Kbd renders a semantic kbd element. Keep shortcut text short and match the platform where possible.

#API

  • Extends native kbd element props.
  • Use children for the displayed key label.

#Styling

Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.

PreviousCodeBlock
NextVisuallyHidden
On this page
  • Default usage
  • Import
  • Accessibility
  • API
  • Styling