react-masonry
Version:
ReactJs layout library.
16 lines (15 loc) • 538 B
TypeScript
import React from 'react';
import { Stone, Position, Spot } from '../internal-types';
declare const usePositions: ({ boxesRefs, wrapperRef, children, windowWidth, wrapperWidth, }: {
boxesRefs: React.MutableRefObject<HTMLElement[]>;
wrapperRef: React.MutableRefObject<HTMLElement | null>;
children: React.ReactNode;
windowWidth: number | undefined;
wrapperWidth: number | null;
}) => {
positions: Position[];
containerHeight: number;
stones: Stone[];
availableSpots: Spot[];
};
export { usePositions };