Komponenten
Tastenkombination
Zeigt eine Tastenkombination in einer eigenen Tastenkappe an.
Verwendung
Einfach
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>In einem Satz
Tasten behalten ihren Rahmen, während der umgebende Text dezent bleibt.
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>Benannte Tasten
Ein langer Tastenname wird breiter und behält dieselbe Höhe.
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>Attribute
| Attribut | Typ | Standard |
|---|---|---|
label | richtext | — |