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 659 B
import { REASONS } from "../../internals/reasons.mjs"; export type Direction = -1 | 1; export type DirectionalChangeReason = typeof REASONS.incrementPress | typeof REASONS.decrementPress | typeof REASONS.wheel | typeof REASONS.scrub | typeof REASONS.keyboard; export interface ChangeEventCustomProperties { direction?: Direction | undefined; } export interface IncrementValueParameters { direction: Direction; event?: Event | React.SyntheticEvent | undefined; reason: DirectionalChangeReason; currentValue?: number | null | undefined; } export interface EventWithOptionalKeyState { altKey?: boolean | undefined; shiftKey?: boolean | undefined; }