zero-dependency-bottom-sheet
Version:
A zero-dependency, customizable React bottom sheet component with drag gestures, snap points, and TypeScript support
11 lines (10 loc) • 307 B
TypeScript
/// <reference types="react" />
interface UseContentRef {
height: number;
onClose: () => void;
headerHeight: number;
}
declare function useContentRef({ height, onClose, headerHeight }: UseContentRef): {
contentRef: import("react").RefObject<HTMLDivElement>;
};
export default useContentRef;