@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.
11 lines • 521 B
TypeScript
import * as React from 'react';
interface DrawerViewportContextValue {
swiping: boolean;
getDragStyles: () => React.CSSProperties;
swipeStrength: number | null;
setSwipeDismissed: (dismissed: boolean) => void;
}
export declare const DrawerViewportContext: React.Context<DrawerViewportContextValue | null>;
export declare function useDrawerViewportContext(optional?: false): DrawerViewportContextValue;
export declare function useDrawerViewportContext(optional: true): DrawerViewportContextValue | null;
export {};