UNPKG

@base-ui/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

16 lines 1.14 kB
import type { TextDirection } from "../direction-context/DirectionContext.mjs"; export { stopEvent, isIndexOutOfListBounds, isListIndexDisabled, findNonDisabledListIndex, getMaxListIndex, getMinListIndex } from "../../floating-ui-react/utils.mjs"; export declare const ARROW_UP = "ArrowUp"; export declare const ARROW_DOWN = "ArrowDown"; export declare const ARROW_LEFT = "ArrowLeft"; export declare const ARROW_RIGHT = "ArrowRight"; export declare const HOME = "Home"; export declare const END = "End"; export declare const PAGE_UP = "PageUp"; export declare const PAGE_DOWN = "PageDown"; export declare const COMPOSITE_KEYS: Set<string>; export declare const SHIFT: 'Shift'; export declare const MODIFIER_KEYS: readonly ["Shift", 'Control', 'Alt', 'Meta']; export type ModifierKey = (typeof MODIFIER_KEYS)[number]; export declare function isNativeInput(element: EventTarget): element is HTMLElement & (HTMLInputElement | HTMLTextAreaElement); export declare function scrollIntoViewIfNeeded(scrollContainer: HTMLElement | null, element: HTMLElement | null, direction: TextDirection, orientation: 'horizontal' | 'vertical' | 'both'): void;