ProductBrand
Join us
Foundations
  • Introduction
  • Colors
  • Typography
  • Icons
  • Illustrations
  • Logos
  • Shadows
Components
  • Accordion
  • Alert Dialog
  • Avatar
  • Badge
  • Button
  • Calendar
  • Card
  • Chart
  • Checkbox
  • Collapsible
  • Combobox
  • Context Menu
  • Date Picker
  • Dialog
  • Drawer
  • Dropdown Menu
  • Fluid Avatar
  • Hover Scroll Text
  • Input
  • Kbd
  • Popover
  • Progress Bar
  • Radio Group
  • Scroll Area
  • Select
  • Selectors
  • Separator
  • Separator Dot
  • Shimmer Text
  • Skeleton
  • Slider
  • Switch
  • Tabs
  • Textarea
  • Toast
  • Tooltip
Compositions
  • Empty State
  • File Attachment
  • Floating Bar
  • Input Banner
  • Markdown Editor
  • Media Controls
  • Product Feature Banner
  • Panels
  • Sidebar
  • Reasoning Trace
  • Pagination
  • Data Table
  • Breadcrumb
  • Thread Outline
Inline
  • Overview
  • Stat Tile
  • Metric Row
  • Comparison Table
  • Chart Card
  • Trend Tile
  • Cite
  • Custom
  • Agent skill

Kbd

Keycaps render a single key, and KbdGroup renders a full shortcut.

Examples

⌘K

On an inverted surface

Change model⌘\

Overview

Kbd renders a native <kbd> element styled as a raised keycap. It uses the same shadow-raised treatment as the active chip in Tabs and SegmentedControl, which draws the hairline edge in light mode and the contact shadow in dark, so the cap reads as sitting above the surface on both themes.

tsx
import { Kbd, KbdGroup } from "@rogo-technologies/ui/kbd";

<KbdGroup>
  <Kbd>⌘</Kbd>
  <Kbd>K</Kbd>
</KbdGroup>;

Usage

Inverted surfaces

Use variant="inverted" for keycaps sitting on bg-surface-inverted, such as tooltips. The default variant's raised fill is theme-aware and reads as a bright block against a dark surface.

tsx
<Kbd variant="inverted">⌘</Kbd>

Platform-specific glyphs

Kbd is presentational and renders whatever you pass it, so mapping "cmd" to ⌘ or Ctrl belongs to the consumer. In the frontend, KeyboardShortcutChip (@components/KeyboardShortcut) does that mapping and resolves the platform after mount to keep the server and first client render in agreement.

tsx
<KeyboardShortcutChip shortcutKey={["cmd", "k"]} />

API

Kbd

PropTypeDefaultDescription
variant"default" | "inverted""default"Use inverted on dark surfaces.
size"sm" | "md""md"Keycap height and minimum width. Both are square for a single glyph.
classNamestring-Additional CSS classes.

Accepts all standard HTML <kbd> attributes.

KbdGroup

PropTypeDefaultDescription
classNamestring-Additional CSS classes.

Accepts all standard HTML <span> attributes.

PreviousInput
NextPopover
Made in NYC© 2026 Rogo Technologies Inc.

Design at Rogo

We’re redesigning an entire industry. Come design it with us.

See open roles

Design at Rogo

  • How we workThe mission of design at Rogo, and the open roles
  • About RogoThe company and the product