Current section

Files

Jump to
noora docs components shortcutkey.md
Raw

docs/components/shortcutkey.md

<!-- Generated by scripts/generate-web-components.js. Do not edit directly. -->
# ShortcutKey
Displays a keyboard shortcut.
```html
<noora-shortcut-key>⌘K</noora-shortcut-key>
```
## Attributes
| Attribute | Type or allowed values | Default | Description |
| --- | --- | --- | --- |
| `size` | `small`, `large` | `"large"` | Controls the key dimensions. |
## Slots
| Slot | Description |
| --- | --- |
| `default` | The shortcut text. |
## Styling parts
| Part | Description |
| --- | --- |
| `key` | The keyboard key. |
## Command
Display a command shortcut.
```html
<noora-shortcut-key>⌘K</noora-shortcut-key>
```