saturation/uisaturation/ui
DocsComponentsBlocksPages
GitHub

Sections

IntroductionComponentsInstallationMCPTheming

Components

ComponentsAccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBeamBlur FadeBorder TrailBreadcrumbButtonButton GroupCalendar PickerCardChartCheckboxCollapsibleComboboxCommandComparison SliderContext MenuCredit CardData TableDate PickerDialogDropdown MenuEmoji PickerEmptyFieldFiltersFull CalendarGlow EffectInputInput GroupInput OTPItemKanbanKbdMenubarNavigation MenuNovel EditorPaginationParallaxProgressProgressive BlurRadio GroupRippleSelectSeparatorSheetSkeletonSliderSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Docs/Components/Kbd

Kbd

Displays a keyboard shortcut or key combination.

Loading...

Installation

pnpm dlx shadcn@latest add https://ui.saturation.io/r/kbd.json

Tailwind v4 — Source Scanning

Saturation UI copies component source into your project via the shadcn registry (no npm package). If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:

@source "../components";

This ensures all utility classes in CVA variants and data attribute selectors are included in your build.

Usage

import { Kbd } from "@/components/ui/kbd"
<Kbd>⌘K</Kbd>

Examples

Group

Loading...
Key combinations with KbdGroup.

Button

Loading...
Kbd inside buttons.

Tooltip

Loading...
Kbd inside tooltips.

Input Group

Loading...
Kbd inside input groups.

API Reference

PropTypeDefaultDescription
children*React.ReactNode—The keyboard key(s) to display.
PreviousKanbanNextLabel

On This Page

  • Installation
  • Usage
  • Examples
  • Group
  • Button
  • Tooltip
  • Input Group
  • API Reference
⌘K
Ctrl+C
Enter
Ctrl+BCtrl+KCtrl+Shift+P
⌘K