> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/huntabyte/shadcn-svelte/llms.txt
> Use this file to discover all available pages before exploring further.

# Kbd

> Used to display textual user input from keyboard.

## Installation

<Tabs>
  <Tab title="CLI">
    ```bash theme={null}
    npx shadcn-svelte@next add kbd
    ```
  </Tab>

  <Tab title="Manual">
    <Steps>
      <Step title="Install dependencies">
        Copy and paste the component source files into your project.
      </Step>
    </Steps>
  </Tab>
</Tabs>

## Usage

```svelte theme={null}
<script lang="ts">
  import * as Kbd from "$lib/components/ui/kbd/index.js";
</script>
```

```svelte theme={null}
<Kbd.Root>B</Kbd.Root>
```

## Examples

### Group

Use the `Kbd.Group` component to group keyboard keys together.

### Button

Use the `Kbd.Root` component inside a `Button` component to display a keyboard key inside a button.

### Tooltip

You can use the `Kbd.Root` component inside a `Tooltip` component to display a tooltip with a keyboard key.

### Input Group

You can use the `Kbd.Root` component inside a `InputGroup.Addon` component to display a keyboard key inside an input group.

## Links

* [Source Code](https://github.com/huntabyte/shadcn-svelte/tree/next/sites/docs/src/lib/registry/ui/kbd)
