@leafygreen-ui/hooks
Version:
LeafyGreen UI Kit Custom Hooks
8 lines • 382 B
TypeScript
/**
* Returns the maximum space available above or below the source trigger
* @param triggerRef The `ref` object attached to the source trigger
* @param margin The space around the trigger
*/
declare const useAvailableSpace: (triggerRef?: React.RefObject<HTMLElement>, margin?: number) => number | undefined;
export default useAvailableSpace;
//# sourceMappingURL=index.d.ts.map