Gallery Blocks for Astro
Astro image galleries with a centered project carousel, a hover grid, and text overlays.
Projects carousel
Browse project images with captions and carousel controls.
bunx --bun shadcn@latest add @gnostic/projects-carouselnpx shadcn@latest add @gnostic/projects-carouselpnpm dlx shadcn@latest add @gnostic/projects-carouselThe selected project appears at full size with its title, description, and link. Side images are smaller and dimmed. Select a side image, use the arrow buttons, or use the dots below the images. The dots sit on the right.
Pass a slides array. Each slide has title, description, href, button,
and image. The image has src and alt. Its source can be a string or an
imported Astro image. String sources can also supply width and height.
Set label to give the carousel an accessible name.
An empty array renders no block. One project renders at full width without navigation controls. Image dimensions and the square frame keep the layout stable while images load.
Bento image links
Use a grid of labeled images to link to individual projects. Set an item’s class to let it span more than one row or column.
bunx --bun shadcn@latest add @gnostic/bento-image-linksnpx shadcn@latest add @gnostic/bento-image-linkspnpm dlx shadcn@latest add @gnostic/bento-image-linksExpanding gallery
Pass images to ExpandingGallery for an image grid. Use rows, columns, gap, and scaleFactor to configure it. This two-row grid shows six illustrations from the gnostic AI image-tagging pilot.
bunx --bun shadcn@latest add @gnostic/expanding-gallerynpx shadcn@latest add @gnostic/expanding-gallerypnpm dlx shadcn@latest add @gnostic/expanding-galleryLabeled panels
Pass panels to show the same six illustrations in one row. Each vertical title is a suggested search tag. Open a panel to read the reviewer’s decision and follow its link to inspect the original image.
Hover or tap a panel to open it. With a keyboard, use the arrow keys to select a panel, then press Tab to reach its link.
bunx --bun shadcn@latest add @gnostic/expanding-gallerynpx shadcn@latest add @gnostic/expanding-gallerypnpm dlx shadcn@latest add @gnostic/expanding-gallerytitlestring
Label shown in both panel states.
stringdescriptionstring
Text below the expanded title.
stringimageImageProps
Image source, alternate text, and optional Astro image attributes.
ImagePropshrefstring
Link destination.
stringlinkLabelstring
Visible link text.
stringProject columns
bunx --bun shadcn@latest add @gnostic/gallery-project-columnsnpx shadcn@latest add @gnostic/gallery-project-columnspnpm dlx shadcn@latest add @gnostic/gallery-project-columnsEditorial projects
Use this section for the projects part of a studio site.
bunx --bun shadcn@latest add @gnostic/portfolio-project-listnpx shadcn@latest add @gnostic/portfolio-project-listpnpm dlx shadcn@latest add @gnostic/portfolio-project-listSee serif accent font setup when installing this section.
Project results
bunx --bun shadcn@latest add @gnostic/gallery-project-resultsnpx shadcn@latest add @gnostic/gallery-project-resultspnpm dlx shadcn@latest add @gnostic/gallery-project-resultsCase study carousel
Supply your own content. The section uses the selected project preset.
bunx --bun shadcn@latest add @gnostic/content-case-carouselnpx shadcn@latest add @gnostic/content-case-carouselpnpm dlx shadcn@latest add @gnostic/content-case-carouselcontentCaseCarouselContent
Section content.
CaseCarouselContentclass?string
Classes added to the root.
stringImage carousel
Supply your own content. The section uses the selected project preset.
bunx --bun shadcn@latest add @gnostic/content-image-carouselnpx shadcn@latest add @gnostic/content-image-carouselpnpm dlx shadcn@latest add @gnostic/content-image-carouselcontentImageCarouselContent
Section content.
ImageCarouselContentclass?string
Classes added to the root.
stringMake your own layout
The block uses Carousel with variant="parallax".
Use the base carousel’s image and overlay slots when you need your own
caption layout. Use only the image slot for an image gallery. The base
carousel supplies the effect, selected state, and dot navigation.
Responsive layout and images
Each slide uses 70% of the carousel width in a narrow container. In a wide container, each slide uses half the width. One project always uses the full width. Keep titles and descriptions short so they fit over the image on mobile.
Images fill a square frame and crop to fit. Use images whose subject stays
visible in a square crop. Supply useful alt text and image dimensions. Imported
Astro images supply their dimensions automatically.














