Primitives

Kbd

Keys drawn as keys; combinations read out with “+”.

Search Switch app Open a gate GSmall

Import#

Everything comes from the package root. The example above uses:

your-component.tsx
import { Kbd } from "@waveinno/ui";

Props#

Read from the source of this version, so they match the code exactly.

<Kbd>

src/components/ui/kbd.tsx
PropTypeDefaultDescription
keysstring[]—A combination: ["⌘", "K"].
size"sm" | "md""md"
classNamestring—
childrenReact.ReactNode—

Install#

If the project does not have the package yet, add it, then follow the setup for Next.js or Vite once.

$ npm install @waveinno/ui