More components in Pro
Galleries, cards and interactive pieces for pages that need more than the basics.
items | Array<{ id, img, width?, height?, title?, description?, alt?, url?, span? }> | [] | Tiles to show. Give width and height to lay out instantly, otherwise the image is measured. span makes a tile cover more columns. |
columns | 'auto' | number | 'auto' | Column count. Auto fits as many columns of columnWidth as the container allows. |
columnWidth | 240 | Target column width in px for auto columns. | |
gap | 12 | Space between tiles in px. | |
radius | 12 | Corner radius of the tiles in px. | |
animateFrom | 'bottom' | 'top' | 'left' | 'right' | 'center' | 'random' | 'none' | 'bottom' | Where tiles come from as they appear. |
stagger | 0.05 | Delay in seconds between tiles appearing. | |
duration | 0.6 | Length in seconds of the springs that move tiles in and between places. | |
bounce | 0.15 | How much the tiles overshoot as they settle, from 0 to 0.9. | |
blurToFocus | Tiles sharpen from a blur as they appear. | ||
revealOnScroll | Tiles appear as they scroll into view instead of all at once. | ||
hoverEffect | 'zoom' | 'lift' | 'tilt' | 'none' | 'zoom' | Zoom the image, lift the tile, or tilt it toward the cursor. |
focusOnHover | Fades the other tiles while one is hovered. | ||
captions | 'hover' | 'always' | 'none' | 'hover' | When the title and description show over a tile. |
parallax | How far images drift inside their tiles as the page scrolls, from 0 to 1. | ||
lightbox | Clicking a tile opens it full size. Arrow keys move between images and Escape closes. | ||
draggable | Drag tiles with a mouse to reorder them. The grid reflows around the tile as it moves. | ||
onItemClick | (item, index, event) => void | Called when a tile is clicked. Call event.preventDefault() to skip the lightbox or link. | |
onReorder | (items) => void | Called with the new order after a drag. | |
| Extra class names for the grid. | |||
| Inline styles for the grid. |
itemsArray<{ id, img, width?, height?, title?, description?, alt?, url?, span? }>Tiles to show. Give width and height to lay out instantly, otherwise the image is measured. span makes a tile cover more columns.
[]columns'auto' | numberColumn count. Auto fits as many columns of columnWidth as the container allows.
'auto'columnWidthnumberTarget column width in px for auto columns.
240gapnumberSpace between tiles in px.
12radiusnumberCorner radius of the tiles in px.
12animateFrom'bottom' | 'top' | 'left' | 'right' | 'center' | 'random' | 'none'Where tiles come from as they appear.
'bottom'staggernumberDelay in seconds between tiles appearing.
0.05durationnumberLength in seconds of the springs that move tiles in and between places.
0.6bouncenumberHow much the tiles overshoot as they settle, from 0 to 0.9.
0.15blurToFocusbooleanTiles sharpen from a blur as they appear.
revealOnScrollbooleanTiles appear as they scroll into view instead of all at once.
hoverEffect'zoom' | 'lift' | 'tilt' | 'none'Zoom the image, lift the tile, or tilt it toward the cursor.
'zoom'focusOnHoverbooleanFades the other tiles while one is hovered.
captions'hover' | 'always' | 'none'When the title and description show over a tile.
'hover'parallaxnumberHow far images drift inside their tiles as the page scrolls, from 0 to 1.
lightboxbooleanClicking a tile opens it full size. Arrow keys move between images and Escape closes.
draggablebooleanDrag tiles with a mouse to reorder them. The grid reflows around the tile as it moves.
onItemClick(item, index, event) => voidCalled when a tile is clicked. Call event.preventDefault() to skip the lightbox or link.
onReorder(items) => voidCalled with the new order after a drag.
Extra class names for the grid.
Inline styles for the grid.
Dependencies
2 required packages
npm install @hugeicons/react @hugeicons/core-free-icons


