---
title: "ProseKbd"
description: "Горячие клавиши в правильном формате."
canonical_url: "https://b24-ui.bx-shef.by/docs/typography/kbd"
---
# ProseKbd

> Горячие клавиши в правильном формате.

## Использование

Компонент `kbd` показывает [Kbd](https://b24-ui.bx-shef.by/raw/docs/components/kbd.md) в содержимом.

```vue
<template>
  <p>
  <kbd value=meta />
   
  <kbd value=K /></p>
  <template v-slot:code=>
  <pre className=language-mdc shiki shiki-themes material-theme-lighter material-theme material-theme-palenight code=:kbd{value="meta"} :kbd{value="K"}
   language=mdc meta= style=>
  <code __ignoreMap=>
  <span class=line>
  <span class=sMK4o>
  :</span>
  <span class=swJcz>
  kbd</span>
  <span class=sMK4o>
  {</span>
  <span class=spNyl>
  value</span>
  <span class=sMK4o>
  =</span>
  <span class=sMK4o>
  "</span>
  <span class=sfazB>
  meta</span>
  <span class=sMK4o>
  "</span>
  <span class=sMK4o>
  }</span>
  <span class=sTEyZ>
   :kbd</span>
  <span class=sMK4o>
  {</span>
  <span class=spNyl>
  value</span>
  <span class=sMK4o>
  =</span>
  <span class=sMK4o>
  "</span>
  <span class=sfazB>
  K</span>
  <span class=sMK4o>
  "</span>
  <span class=sMK4o>
  }
  </span></span></code></pre></template>
</template>
```

## API

### Пропсы

```ts
/**
 * Props for the ProseProseKbd component
 */
interface ProseProseKbdProps {
  /**
   * The element or component this component should render as.
   * @default 'kbd'
   */
  as?: any;
  value?: string | undefined;
  /**
   * @default 'default'
   */
  accent?: "default" | "accent" | "less" | undefined;
  /**
   * @default 'md'
   */
  size?: "sm" | "md" | "lg" | undefined;
  b24ui?: { base?: SlotClass; } | undefined;
}
```

### Слоты

```ts
/**
 * Slots for the ProseKbd component
 */
interface ProseKbdSlots {
  default(): any;
}
```

## Тема

```ts [app.config.ts]
export default defineAppConfig({
  b24ui: {
    prose: {}
  }
})
```

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
