Column Width
240px
Gap
12px
Radius
12px
Stagger
0.05s
Duration
0.6s
Bounce
0.15
Parallax
0

More components in Pro

Galleries, cards and interactive pieces for pages that need more than the basics.

View all 255
21 properties
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' | number'auto'Column count. Auto fits as many columns of columnWidth as the container allows.
columnWidth240Target column width in px for auto columns.
gap12Space between tiles in px.
radius12Corner radius of the tiles in px.
animateFrom'bottom' | 'top' | 'left' | 'right' | 'center' | 'random' | 'none''bottom'Where tiles come from as they appear.
stagger0.05Delay in seconds between tiles appearing.
duration0.6Length in seconds of the springs that move tiles in and between places.
bounce0.15How much the tiles overshoot as they settle, from 0 to 0.9.
blurToFocusTiles sharpen from a blur as they appear.
revealOnScrollTiles 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.
focusOnHoverFades the other tiles while one is hovered.
captions'hover' | 'always' | 'none''hover'When the title and description show over a tile.
parallaxHow far images drift inside their tiles as the page scrolls, from 0 to 1.
lightboxClicking a tile opens it full size. Arrow keys move between images and Escape closes.
draggableDrag 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.
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.

Default[]
columns'auto' | number

Column count. Auto fits as many columns of columnWidth as the container allows.

Default'auto'
columnWidthnumber

Target column width in px for auto columns.

Default240
gapnumber

Space between tiles in px.

Default12
radiusnumber

Corner radius of the tiles in px.

Default12
animateFrom'bottom' | 'top' | 'left' | 'right' | 'center' | 'random' | 'none'

Where tiles come from as they appear.

Default'bottom'
staggernumber

Delay in seconds between tiles appearing.

Default0.05
durationnumber

Length in seconds of the springs that move tiles in and between places.

Default0.6
bouncenumber

How much the tiles overshoot as they settle, from 0 to 0.9.

Default0.15
blurToFocusboolean

Tiles sharpen from a blur as they appear.

revealOnScrollboolean

Tiles 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.

Default'zoom'
focusOnHoverboolean

Fades the other tiles while one is hovered.

captions'hover' | 'always' | 'none'

When the title and description show over a tile.

Default'hover'
parallaxnumber

How far images drift inside their tiles as the page scrolls, from 0 to 1.

lightboxboolean

Clicking a tile opens it full size. Arrow keys move between images and Escape closes.

draggableboolean

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.

Dependencies

2 required packages

npm install @hugeicons/react @hugeicons/core-free-icons