Skip to content

Kbd

Displays a key or key combination.

Usage

vue
<script setup>
import { ArchKbd } from "@archora/ui";
</script>

<template><ArchKbd>Cmd</ArchKbd> <ArchKbd>K</ArchKbd></template>

Live sandbox

Kbd can be tested directly on this page.

interactive
CmdK
<Kbd />

Props

PropTypeDefaultDescription
as"kbd" | "span""kbd"Root HTML element.
size"sm" | "md" | "lg""md"Size.
variant"default" | "subtle" | "outline""default"Visual variant.

Slots

SlotPropsDescription
default-Key text.