Skip to main content
Version: Next

MasonryGrid API

import { MasonryGrid } from '@editora/ui-react';

Props​

PropTypeDescription
columnGapResponsive<CssValue>
columnsResponsive<CssValue>
columnWidthResponsive<CssValue>
displayResponsive<'block' | 'inline-block' | CssValue>
fillResponsive<'auto' | 'balance' | 'balance-all' | CssValue>
gapResponsive<CssValue>
headlessboolean
itemGapResponsive<CssValue>

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-masonry-grid>​

MasonryGrid renders the ui-masonry-grid custom element from @editora/ui-core, which can also be used without React.

Attributes: classname, headless

Events: layoutchange