Composants
Raccourci clavier
Affiche un raccourci clavier dans une touche dédiée.
Utilisation
Basique
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>Dans une phrase
Les touches gardent leur encadré, tandis que le texte autour reste atténué.
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>Touches nommées
Une longue touche nommée s’étend sur la largeur et conserve la même hauteur.
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>Attributs
| Attribut | Type | Par défaut |
|---|---|---|
label | richtext | — |