ValyroUI English version

Keyboard Map Overlay

Карта горячих клавиш экрана: поиск, клавиатура и режим тренировки. Pro · Навигация и каркас › Меню и команды

Установка

npx valyro-cli@latest login
npx valyro-cli@latest add keyboard-map-overlay
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { KeyboardMapOverlay } from 'valyro-ui-pro';

Пропсы

PropTypeDefault
shortcuts *KeyboardShortcut[]Shortcuts of the current screen.
openbooleanThe map is open (dialog mode).
defaultOpenbooleanfalseInitial state when uncontrolled. Default false.
onOpenChange(open: boolean) => voidCalled when the map opens or closes.
triggerstring | null'?'Key that opens the map anywhere on the page, outside text fields; null turns it off. Default "?".
inlinebooleanfalseRender in place (a help page) instead of a dialog.
learnedstring[]Ids of shortcuts the person has practised.
defaultLearnedstring[]EMPTYInitial learned ids when uncontrolled.
onLearnedChange(learned: string[]) => voidCalled when a practised shortcut is pressed for the first time.
titleReactNodeHeading. Default: labels.title.
labelsPartial<KeyboardMapOverlayLabels>Overrides for the built-in English text; keys left out keep their defaults.

Похожие компоненты

Назад: Command Palette · Далее: Alert · Весь раздел «Навигация и каркас»