Back to Components





Components
Media Grid
Masonry style grid for mixed media items with hover overlays.
IMAGE
City lights
Editorial still
VIDEO2:14
Studio reel
Short motion clip
AUDIO34 min
Podcast teaser
Audio highlight
IMAGE
Product detail
Feature closeup
VIDEO1:02
Launch recap
Behind the scenes
AUDIO52 min
Soundtrack
Mood board audio
Dependencies
- clsx
- tailwind-merge
Files
- components/ui/media-grid.tsx
Installation
Using shadcn CLI
npx shadcn add media-grid --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge