Saltar al contenido

Componentes

Atajo de teclado

Muestra un atajo de teclado en una tecla propia.

Uso

Básica

Cmd K
HTML
<bs:bsui-stack direction="row" gap="2" justify="center">
  <bs:bsui-kbd label="Cmd" />
  <bs:bsui-kbd label="K" />
</bs:bsui-stack>

En una frase

Las teclas conservan su recuadro mientras el texto que las rodea mantiene un tono apagado.

Press Ctrl Shift P to open the command palette.
HTML
<bs:bsui-stack direction="row" gap="1" align="center" justify="center">
  <bs:bsui-text content="Press" variant="muted" tag="span" />
  <bs:bsui-kbd label="Ctrl" />
  <bs:bsui-kbd label="Shift" />
  <bs:bsui-kbd label="P" />
  <bs:bsui-text content="to open the command palette." variant="muted" tag="span" />
</bs:bsui-stack>

Teclas con nombre

Un nombre de tecla largo se extiende horizontalmente y conserva la misma altura.

Esc Tab Enter Space
HTML
<bs:bsui-stack direction="row" gap="2" justify="center">
  <bs:bsui-kbd label="Esc" />
  <bs:bsui-kbd label="Tab" />
  <bs:bsui-kbd label="Enter" />
  <bs:bsui-kbd label="Space" />
</bs:bsui-stack>

Atributos

AtributoTipoPredeterminado
label richtext —