# Kbd

> Renders a keyboard key or shortcut.

- Category: [Text & media](https://tarve.dev/docs.md#text-media)
- Import: `import { Kbd } from "@tarve/core";`
- Props type: `KbdProps`
- Source: [packages/core/src/form-controls.ts:273](https://github.com/omarcosr/tarve/blob/main/packages/core/src/form-controls.ts#L273)

## Usage

```tsx title="Kbd.tsx"
import { Kbd, Row, Text } from "@tarve/core";

<Row gap={4} align="center">
  <Text>Press</Text>
  <Kbd>Ctrl</Kbd>
  <Kbd>K</Kbd>
  <Text>to search</Text>
</Row>
```

## Props

Kbd has no props of its own beyond the inherited and common props below.

## Common props

Shared by every component (descriptions: https://tarve.dev/docs.md#common-props): `children`, `class`, `className`, `highlight`, `id`, `key`, `motionFrom`, `onHighlight`, `onPaste`, `onPointerLeave`, `onPointerMove`, `onSize`, `onTransitionEnd`, `rovingGroup`, `style`.

Previous: [Label](https://tarve.dev/docs/components/Label.md) · Next: [Image](https://tarve.dev/docs/components/Image.md)

---

Tarve v0.13.8 · HTML version: https://tarve.dev/docs/components/Kbd · Index for agents: https://tarve.dev/llms.txt
