---
title: Kbd
description: Keyboard key chip.
---

`kbd()` renders a keyboard key chip styled with `--cpd-secondary` and a subtle
inner shadow.

## Single keys

```ts
kbd('⌘');
kbd('K');
kbd('Ctrl');
```

## Combinations

```ts
[kbd('Ctrl'), ' + ', kbd('Shift'), ' + ', kbd('P')].join('');
```

## Props

<PropsTable
  labels={{ prop: 'Option', type: 'Type' }}
  type={{
    text: { type: 'string', description: 'Key label (first argument).' },
  }}
/>

## Notes

- Renders as `<kbd class="cpd-kbd">`; combination separators are plain text
  joined with string concatenation.
- Use the `--cpd-font-mono` family for consistent key glyphs.
