Skip to main content

MediaGrid

Media
View Docs

Responsive gallery of media thumbnails with keyboard navigation

mediagallerygridmasonrythumbnails

Demo

Grid with lightbox

Tab into the gallery, then use the arrow keys — ↓ moves a full row, not one tile.

Mixed media

Video and audio tiles gain a play affordance; items with no thumbnail fall back to an icon.

Masonry

Preserves each image's own height. CSS columns fill top-to-bottom, so use it when the order does not matter.

Custom selection handling

Select a tile to see the callback fire.

Usage

import { MediaGrid } from '@classic-homes/theme-svelte';

Related Components