Kbd

Displays keyboard input or keyboard shortcuts.

Basic

A single keyboard key.

KCtrlEscEnter

Keyboard Shortcut

Use KbdGroup to display keyboard shortcuts.

Ctrl+KCmd+Shift+P

Mac Symbols

Keyboard keys with Mac-style symbols.

⌘⇧⌥⌃↩

In Context

Keyboard shortcuts displayed inline with text.

Press Ctrl+C to copy

Press Ctrl+V to paste

Press Esc to close

Custom Styling

Kbd can be customized with additional classes.

EnterDelete

Accessibility

  • Uses semantic <kbd> element for keyboard input
  • pointer-events-none prevents accidental interaction
  • select-none prevents text selection
  • Consistent sizing ensures readability
Open Markdown
FreeKbd

Keyboard shortcut display.

Install with the Proa CLI
proa ui add kbd

Installs the reviewed component source, dependencies, shared support files, and required legal notices.

CLI and registry setup
recipe.rs
// SPDX-FileCopyrightText: 2026 Proa Labs, Inc.
// SPDX-License-Identifier: MIT OR Apache-2.0

//! Kbd recipe — static named slots for keys and key groups.

use crate::tw_join;
use proa_core::shared::attr_value::AttrValue;
use proa_core::{DataLoader, WebContext, WriteBuf, WriteError};

const KBD_ROOT: &str = tw_join!(
    "inline-flex",
    "h-5",
    "w-fit",
    "min-w-5",
    "items-center",
    "justify-center",
    "gap-1",
    "rounded-xs",
    "bg-muted",
    "px-1",
    "font-sans",
    "text-xs",

Search

Type at least 2 characters

Customize

Make it yours

Palette

Radius

Overview
Components
Settings

Build your own

Themed Proa UI surface

Preview
Components52
RecipesTyped
customer-portal