UNPKG

800 BTypeScriptView Raw
1/// <reference types="react" />
2import { AbstractPureComponent2, Props } from "../../common";
3export declare type KeyComboTagProps = IKeyComboProps;
4/** @deprecated use KeyComboTagProps */
5export interface IKeyComboProps 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 KeyCombo extends AbstractPureComponent2<KeyComboTagProps> {
18 static displayName: string;
19 render(): JSX.Element;
20 private renderKey;
21 private renderMinimalKey;
22}