Skip to main content

Shortcut

Interfaces

ShortcutProps

Properties

PropertyTypeDescriptionDefined in
keysstring[]The array of shortcut keys.manager/components/Shortcut.tsx:6
size?Responsive<"2" | "1" | "3" | "4" | "5" | "6" | "7" | "8" | "9">The size of the shortcut display.manager/components/Shortcut.tsx:8

Functions

default()

default(__namedParameters): Element

The shortcut display component.

Each key will be displayed as a keyboard element, joint by a plus sign. They will be wrapped in a flex box with default gap size 1. All flex box props can be passed to this component to further customize the display layout.

Parameters

ParameterType
__namedParametersShortcutProps & ComponentPropsWithoutRef<ForwardRefExoticComponent<FlexProps & RefAttributes<HTMLDivElement>>>

Returns

Element

Defined in

manager/components/Shortcut.tsx:18