Componentes
Atalho de teclado
Exibe um atalho de teclado em sua própria tecla.
Uso
Básico
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>Em uma frase
As teclas mantêm sua caixa enquanto o texto ao redor permanece discreto.
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 nomeadas
Um nome de tecla longo se estende para os lados e mantém a mesma 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
| Atributo | Tipo | Padrão |
|---|---|---|
label | richtext | — |