
The Masonry Image Gallery component is designed to elegantly display images of various sizes within a defined area. Utilizing a masonry layout, this component arranges your images in a visually appealing and organized manner, similar to a Pinterest board. As an author, you can easily adjust the number of columns to control how many images appear in each row and modify the spacing between images.
Example





Layout and Styling Options
Columns









Grid Gap









Usage
Do
- Ensure images are of high quality and resolution to maintain visual appeal.
- Test different column settings to find the optimal layout for your images.
- Use images with varying dimensions to take full advantage of the masonry layout.
- Preview the gallery on different devices to ensure responsiveness and adaptability.
- Organize images in a logical sequence to guide the viewer’s eye smoothly through the gallery.
Don't
- Avoid using images with poor resolution or quality as they can detract from the overall appearance.
- Refrain from using images with clashing colors or themes that disrupt the visual harmony.
- Avoid excessively large gaps between images, which can make the gallery look disjointed.
- Steer clear of images that are copyrighted or not licensed for your use.
- Avoid using very large image files that can slow down page load times.
Accessibility
- Ensure that you provide suitable alt text for the images on your cards. Alt text for images enhances web accessibility by offering a textual description for screen readers used by visually impaired users. See the a11yproject website for more information about writing alt text for images.