grid-rows-masonry
Version:
A ponyfill for CSS Grid masonry layout in plain JavaScript and React.
18 lines (17 loc) • 583 B
TypeScript
import { ComponentProps, ElementType } from "react";
type MasonryProps<C extends ElementType = "div"> = {
component?: C;
disabled?: boolean;
} & ComponentProps<C>;
export declare const Masonry: <C extends ElementType>(props: MasonryProps<C>) => import("react").CElement<{
component?: C | undefined;
disabled?: boolean;
} & ComponentProps<C> & {
ref: import("react").RefObject<null>;
}, import("react").Component<{
component?: C | undefined;
disabled?: boolean;
} & ComponentProps<C> & {
ref: import("react").RefObject<null>;
}, any, any>>;
export {};