UNPKG

@bedrock-layout/masonry-grid

Version:
20 lines (19 loc) 890 B
import { GridProps } from "@bedrock-layout/grid"; /** * Props for MasonryGrid component. */ export type MasonryGridProps = GridProps; /** * The `MasonryGrid` component is almost identical to the * [Grid component](https://www.bedrock-layout.dev/?path=/docs/spacer-components-masonrygrid--docs) * except that each item's vertical space will grow independent of each other. * The `MasonryGrid` component will then optimize the number of * columns based on the `minItemWidth` prop value passed in. * * `MasonryGrid` does not create standard rows. Instead, it will * optimize for the most dense vertical layout that it can achieve based on * the space available. * * @deprecated Use the `Grid` component with the `variant` prop set to "masonry" instead. */ export declare const MasonryGrid: import("@bedrock-layout/type-utils").PolymorphicForwardedRefComponent<"div", GridProps>;