KeyboardShortcutsPanel
KeyboardShortcutsPanel renders a read-only keyboard-shortcuts panel that can be embedded inside a modal, sidebar, or info box.
Usage
Use KeyboardShortcutsPanel when the shortcuts reference should live inside an existing panel layout.
import {
KeyboardShortcutsPanel,
type KeyboardShortcutsPanelProps
} from '@deck.gl-community/panels';
Props
type KeyboardShortcutsPanelProps = {
keyboardShortcuts?: KeyboardShortcut[];
theme?: 'inherit' | 'light' | 'dark' | 'invert';
};
Remarks
- Uses the built-in keyboard shortcut list renderer from the keyboard widget.
- Defaults to an id of
keyboard-shortcutsand a title ofKeyboard Shortcuts. - Works as a plain panel, so it can be combined with tabbed, column, or accordion layouts.