DOCS
v0.4

Components / Image Gallery

Image Gallery

Responsive image grid with lightbox and "show all" overflow.

data-display v0.1.0

Playground

Examples

Gallery
<cg-image-gallery></cg-image-gallery>

Import

import { CgImageGallery } from '@cognivo/components';
// Or tree-shake: import '@cognivo/components/cg-image-gallery';

Per-component imports ship only that component (~8 kB gzip).

API Reference

PropTypeDefaultDescription
images GalleryImage[] Array of {src, alt} objects
rounded "none" | "sm" | "md" | "lg" | "full" "lg" Border radius variant