Skip to content

Kbd

Keyboard key display element estilo terminal.

Kbd

Demo

CtrlEnter
vue
<Kbd>Ctrl</Kbd>
<Kbd color="success">Enter</Kbd>
<Kbd color="warning"></Kbd>

Props

color

Color semántico del keycap.

PrimarySuccessWarningDanger
vue
<Kbd color="primary">Primary</Kbd>
<Kbd color="success">Success</Kbd>
<Kbd color="warning">Warning</Kbd>
<Kbd color="danger">Danger</Kbd>

Slots

default

Contenido del key (etiqueta del atajo).

vue
<Kbd>Ctrl</Kbd>

API

PropTipoDefaultDescripción
color'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'light' | 'medium' | 'dark''primary'Color semántico

Tokens usados

--color-{name}, --bg-elevated, --border, --font-mono