@umbraco-ui/uui-keyboard-shortcut
v1.17.2
Published
This package contains two web components - uui-key and uui-keyboard-shortcut. They can be used to illustrate key combination for keyboard shortcuts
Readme
uui-keyboard-shortcut
See it in action
Preview the component on Storybook
Installation
ES imports
npm i @umbraco-ui/uui-keyboard-shortcutImport the registration of <uui-keyboard-shortcut> via:
import '@umbraco-ui/uui-keyboard-shortcut';When looking to leverage the UUIKeyboardShortcutElement base class as a type and/or for extension purposes, do so via:
import { UUIKeyboardShortcutElement } from '@umbraco-ui/uui-keyboard-shortcut';Usage
<uui-keyboard-shortcut>
<uui-key>ALT</uui-key>
+
<uui-key>shift</uui-key>
+
<uui-key>↑</uui-key>
+
<uui-key>z</uui-key>
</uui-keyboard-shortcut>