Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Gallery Blocks for Astro

Astro image galleries with a centered project carousel, a hover grid, and text overlays.

Browse project images with captions and carousel controls.

bunx --bun shadcn@latest add @gnostic/projects-carousel

The 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.

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.

Six illustrations for an image-tagging pilot

Open a source image from the gnostic AI sample collection. Which tags would help an editor find it again?

Review four sample tags
bunx --bun shadcn@latest add @gnostic/bento-image-links

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.

A wizard on a stone road between cottages and red treesA figure below a circular opening in a rock faceTwo crescent shapes above a shore at sunset
A pilot facing a castle above the cloudsFigures facing a tall blue-lit doorwayA wizard beside a spacecraft resting on open ground
bunx --bun shadcn@latest add @gnostic/expanding-gallery

Labeled 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-gallery
PropType
titlestring

Label shown in both panel states.

Typestring
descriptionstring

Text below the expanded title.

Typestring
imageImageProps

Image source, alternate text, and optional Astro image attributes.

TypeImageProps
hrefstring

Link destination.

Typestring
linkLabelstring

Visible link text.

Typestring

Project columns

bunx --bun shadcn@latest add @gnostic/gallery-project-columns

Editorial projects

Use this section for the projects part of a studio site.

bunx --bun shadcn@latest add @gnostic/portfolio-project-list

See serif accent font setup when installing this section.

Project results

What the pilot tests revealed

gnostic AI · Sample projects

Results from the sample field notes.

Mountain ridge beyond a lake

Ticket routing

Support operations

Mixed request

A reviewer assigns the queue.

An illustrated entrance hall

Reply review

Customer support

Item unspecified

The agent asks which item the customer bought.

Illustration of an open field

Invoice intake

Accounts payable

Totals differ

The accounts team checks the extra charge before posting.

Sample tickets
3
Billing, setup, and a request that covers both.
Disputed charge
$24
The $264 invoice exceeds the $240 order.
bunx --bun shadcn@latest add @gnostic/gallery-project-results

Supply your own content. The section uses the selected project preset.

gnostic AI · Sample review notes

Which tags passed the image check?

Keep
Mountain ridge beyond a lake

Keep “mountain lake”

The ridge and the water are both visible. An editor searching for a mountain lake could use this image.

Change
An illustrated entrance hall

Change “hotel” to “entrance hall”

The picture shows a hall. It gives no clue about what the building is used for.

Remove
Illustration of an open field

Remove “Yorkshire”

Keep the existing “open field” tag. Add the place name only if the illustrator can confirm it.

bunx --bun shadcn@latest add @gnostic/content-case-carousel
PropType
contentCaseCarouselContent

Section content.

TypeCaseCarouselContent
class?string

Classes added to the root.

Typestring

Supply your own content. The section uses the selected project preset.

gnostic AI · Image-tagging pilot

Which tags would you give these three images?

Mountain ridge beyond a lakeAn illustrated entrance hallIllustration of an open field

bunx --bun shadcn@latest add @gnostic/content-image-carousel
PropType
contentImageCarouselContent

Section content.

TypeImageCarouselContent
class?string

Classes added to the root.

Typestring

Make 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.