react-photo-album
Version:
Responsive photo gallery component for React
12 lines (8 loc) • 400 B
TypeScript
import { ForwardedRef } from '../types.js';
import 'react';
declare function useArray<T>(array: T[] | undefined): T[] | undefined;
declare function useContainerWidth(ref: ForwardedRef, breakpointsArray: number[] | undefined, defaultContainerWidth?: number): {
containerRef: (node: HTMLElement | null) => void;
containerWidth: number | undefined;
};
export { useArray, useContainerWidth };