Kbd
A keyboard key or shortcut hint.
Installation
bash
shellui-native add kbd
Platforms: MAUI · Avalonia.
Usage
Basic
Press CtrlK to search, or close with Esc
<HorizontalStackLayout Spacing="6">
<ui:ShellLabel Text="Press" Size="Sm" Variant="Muted" />
<ui:Kbd Text="Ctrl" />
<ui:Kbd Text="K" />
<ui:ShellLabel Text="to search, or close with" Size="Sm" Variant="Muted" />
<ui:Kbd Text="Esc" />
</HorizontalStackLayout><StackPanel Orientation="Horizontal" Spacing="6">
<ui:ShellLabel Text="Press" Size="Sm" Variant="Muted" />
<ui:Kbd Text="Ctrl" />
<ui:Kbd Text="K" />
<ui:ShellLabel Text="to search, or close with" Size="Sm" Variant="Muted" />
<ui:Kbd Text="Esc" />
</StackPanel>Not available on yet
API
| Property | Type | Default | Description |
|---|---|---|---|
Text |
string |
— | Key or shortcut to show (Ctrl+K). |