UNPKG

849 BTypeScriptView Raw
1/// <reference types="react" />
2import { AbstractPureComponent, Props } from "../../common";
3/** Reverse table of some CONFIG_ALIASES fields, for display by KeyComboTag */
4export declare const DISPLAY_ALIASES: Record<string, string>;
5export interface KeyComboTagProps extends Props {
6 /** The key combo to display, such as `"cmd + s"`. */
7 combo: string;
8 /**
9 * Whether to render in a minimal style.
10 * If `false`, each key in the combo will be rendered inside a `<kbd>` tag.
11 * If `true`, only the icon or short name of a key will be rendered with no wrapper styles.
12 *
13 * @default false
14 */
15 minimal?: boolean;
16}
17export declare class KeyComboTag extends AbstractPureComponent<KeyComboTagProps> {
18 static displayName: string;
19 render(): JSX.Element;
20 private renderKey;
21 private renderMinimalKey;
22}