@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.
15 lines • 620 B
TypeScript
import type { DrawerSnapPoint } from "./DrawerRootContext.js";
export interface ResolvedDrawerSnapPoint {
value: DrawerSnapPoint;
height: number;
offset: number;
}
export declare function useDrawerSnapPoints(): {
snapPoints: DrawerSnapPoint[] | undefined;
activeSnapPoint: DrawerSnapPoint | null | undefined;
setActiveSnapPoint: ((snapPoint: DrawerSnapPoint | null, eventDetails?: import("./DrawerRoot.js").DrawerRootSnapPointChangeEventDetails) => void) | undefined;
popupHeight: number;
viewportHeight: number;
resolvedSnapPoints: ResolvedDrawerSnapPoint[];
activeSnapPointOffset: number | null;
};