Zephora UI

Data

Kbd

Keyboard key hint rendered with semantic kbd elements and a mono font; multiple keys join into a combination with a plus separator.

Import

import { Kbd } from "@zephora/react";

Examples

Single keys

EscEnterTab

Combinations

"keys" renders each key separately, joined with a "+" separator.

CtrlKShiftAltF

Sizes

CtrlCCtrlCCtrlC

API

Kbd props

PropTypeDefaultDescription
keysstring[]Multiple keys rendered as a combination joined with "+" (e.g. ["Ctrl", "K"]). When omitted, children is rendered as a single key.
size"sm" | "md" | "lg""md"Typography scale.
unstyledbooleanfalseHeadless mode — skips Zephora styling.