@limetech/lime-elements
Version:
27 lines • 867 B
TypeScript
/**
* This is a display-only component used to visualize keyboard shortcuts.
* It renders hotkey strings as styled `<kbd>` elements with
* platform-aware glyphs (e.g. `⌘` on macOS, `⊞ Win` on Windows).
*
* It does **not** listen for or handle any keyboard events.
* Keyboard event handling is the responsibility of the parent component
* (e.g. `limel-menu` or `limel-select`).
*
* @exampleComponent limel-example-hotkey-basic
* @exampleComponent limel-example-hotkey-disabled
* @private
*/
export declare class Hotkey {
private isApple;
/**
* The hotkey string to visualize, e.g. `"meta+c"` or `"shift+enter"`.
*/
value: string;
/**
* When `true`, the hotkey is rendered in a visually disabled state.
*/
disabled: boolean;
componentWillLoad(): void;
render(): any;
}
//# sourceMappingURL=hotkey.d.ts.map