# Kbd

> Keyboard key glyph.

Registry name: `kbd`. HTML docs: https://ui.anuragroy.dev/component/kbd.

## Install

```bash
npx shadcn@latest add https://ui.anuragroy.dev/r/kbd.json
```

If the website is down: `npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/kbd.json`.

Registry JSON: https://ui.anuragroy.dev/r/kbd.json (GitHub: https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/kbd.json).

## Import

Import paths follow the consumer `components.json` aliases. After a default install:

```tsx
import { Kbd } from "@/components/ui/kbd"
```

## Usage

```tsx
import { Kbd } from "@/components/ui/kbd"

export function Example() {
  return (
    <>
      <Kbd>⌘</Kbd>
      <Kbd>K</Kbd>
    </>
  )
}
```

## API

### Kbd

Styled `kbd`.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | string | — |  |

## See also

- [HTML page](https://ui.anuragroy.dev/component/kbd): Preview and the same docs in the site chrome.
- [Registry item](https://ui.anuragroy.dev/r/kbd.json): Source files and dependencies.
- [Catalog](https://ui.anuragroy.dev/component): All components.
- [llms.txt](https://ui.anuragroy.dev/llms.txt): Agent index for this library.
