How to make custom layout using rowConstraints? #174
-
Hi Igor, thank you for these amazing packages! ⭐ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there! Please see if the following settings provide the layout you are looking for. <PhotoAlbum
layout="rows"
photos={photos}
componentsProps={{
containerProps: { style: { maxWidth: 1200, marginInline: 'auto' } },
}}
rowConstraints={(containerWidth) => ({
maxPhotos: containerWidth > 600 ? 4 : 2,
})}
/> |
Beta Was this translation helpful? Give feedback.
Hi there! Please see if the following settings provide the layout you are looking for.