Masonry Grid
Live Demos HubMasonry Grid
Interactive production-grade hypermedia component for HTMXUI.
Interactive Preview
{items}
HTML Source
<!--
Component: masonry-grid.html
Configurable State: themeColor ('primary'|'secondary'|'destructive'), size ('sm'|'md'|'lg'), isOpen (boolean)
Usage: Bind styles dynamically using hx-class="{ 'bg-primary': themeColor === 'primary' }" or hx-style="{ width: size === 'lg' ? '100%' : 'auto' }"
-->
<div hx-ext="reactive" hx-state="{ themeColor: \'primary\', size: \'md\', isOpen: false }" class="columns-1 sm:columns-2 md:columns-3 gap-4 space-y-4">
{items} <!-- Items must have break-inside-avoid class -->
</div>