---
title: "Kbd"
description: "Shows keyboard keys and shortcuts such as ⌘K inline in text, buttons, and tooltips, with a group for key combinations."
plan: Free
docs: https://ui.edbn.me/docs/components/kbd
---

# Kbd

Shows keyboard keys and shortcuts such as ⌘K inline in text, buttons, and tooltips, with a group for key combinations.

## Installation

```bash
npx shadcn@4.19.0 add https://ui.edbn.me/r/kbd.json
```

## Dependencies
- edbn: edbn-base

## Usage

```tsx examples/kbd-basic.tsx
"use client";
import { Button } from "@/components/ui/button";
import { Kbd, KbdGroup } from "@/components/ui/kbd";

export default function KbdBasicPreview() {
  return (
    <div className="flex flex-wrap items-center gap-3">
      <KbdGroup>
        <Kbd>⌘</Kbd>
        <Kbd>K</Kbd>
      </KbdGroup>
      <Button>
        Save
        <Kbd>⌘S</Kbd>
      </Button>
    </div>
  );
}
```

## Files
- components/ui/kbd.tsx (33 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
