UNPKG

preline

Version:

Preline UI is an open-source set of prebuilt UI components based on the utility-first Tailwind CSS framework.

34 lines (31 loc) 840 B
export interface IAccessibilityKeyboardHandlers { onEnter?: () => void; onEsc?: () => void; onSpace?: () => void; onArrow?: (event: KeyboardEvent) => void; onTab?: () => void; onShiftTab?: () => void; onHome?: () => void; onEnd?: () => void; onFirstLetter?: (key: string) => void; [key: string]: ((...args: any[]) => void) | undefined; } export interface IAccessibilityComponent { wrapper: HTMLElement; handlers: IAccessibilityKeyboardHandlers; isOpened: boolean; name: string; selector: string; context?: HTMLElement; isRegistered: boolean; } export interface HSAccessibilityObserver { registerComponent( wrapper: HTMLElement, handlers: IAccessibilityKeyboardHandlers, isActive?: boolean, name?: string, selector?: string, context?: HTMLElement ): IAccessibilityComponent; }