niceui

React Image Gallery Components

Free React image gallery components built with Tailwind CSS: masonry and bento grids, 3D carousels, lightboxes, filmstrips, before-and-after sliders and scroll-driven reveals. Every gallery takes plain image URLs, works with Next.js and Vite, and ships its full source so you can restyle it.

29 free components · React + Tailwind CSS · MIT licensed

FAQ

What is the best way to build an image gallery in React?

Start from a component that already handles layout, lazy loading and keyboard navigation. A masonry or bento grid suits portfolios, a carousel suits featured work, and a lightbox lets people open any image full screen. Each one here is plain React and Tailwind CSS.

Do these galleries need a library like react-images?

No. They have no runtime dependency beyond React. You pass an array of image URLs and the component handles the rest.

Can I use them with Next.js Image?

Yes. Swap the img tag for next/image in the copied source; layout and animation do not depend on the image element.

Related topics