# Kbd

Supply UI 1.1.0. Helpers.

A key or a shortcut written in a sentence: `<Kbd>⌘K</Kbd>`

A key or a shortcut written in a sentence

## Options

No options of its own.

It also takes the 280 attributes of the element or UI SDK part it renders (`className`, `aria-label`, events…).

## CSS parts

With the CSS in parts (`/ui/css/`), it needs: `components/card.css`, `components/stat.css`, `components/badge.css`, `components/alert.css`, `components/avatar.css`, `components/separator.css`, `components/loading.css`, `components/table.css`, `components/empty-state.css`, `components/tabs.css`, `components/resizable-panels.css`, `components/icons.css`, `components/chips.css`, `components/cells.css`, `components/inset.css`, `components/figure.css`, `components/avatar-group.css`, `components/hatch-bars.css`, `components/input-group.css`, `components/table-sorting-chosen-rows.css`, `components/tab-bar.css`, `components/prose.css`, `components/page-transitions.css`, `parts/avatar.css`, `parts/progress-meter.css`, `parts/carousel.css`, `parts/board.css`, besides the ones every page loads.

## In the examples

- Jump anywhere with ⌘K: Pages and actions in one search (https://www.supply.family/ui/#scene-jump)

## Helpers: notes

Hooks and functions the components are made of, passed on so a project uses the same ones: keyboard shortcuts, options loaded while typing, search matching, saved preferences, screen-reader announcements, smooth sizes, the theme.

**Do**
- Use `useShortcut` for app-wide keys, and show the key with `formatShortcut` so it reads right on each computer.
- Use `announce()` to tell a screen reader what changed when nothing visible takes focus ("3 results").

**Don't**
- Don't turn off the smooth sizes `Toaster` starts; boxes would jump when their content changes.
