v-hotkey

  • Directives
  • exports: 6

What the @feugene/granularity/directives/hotkey subpath exports, with signatures from its type declarations.

Source: @feugene/granularity 1.1.1, package.json#exports and dist/types

On this page

Import

import { vHotkey } from '@feugene/granularity/directives/hotkey'

Exports

HotkeyHandlertype
type HotkeyHandler = (event: KeyboardEvent) => void
HotkeyEntrytype
type HotkeyEntry
HotkeyMaptype
type HotkeyMap = Record<string, HotkeyEntry>
HotkeyScopetype
type HotkeyScope = 'global' | 'element'
HotkeyBindingValuetype
type HotkeyBindingValue
vHotkeyconst
const vHotkey: Directive<HTMLElement, HotkeyBindingValue>

Library prose

Read it in the repository: docs/directives.md