GalleryIndicator

Glass overlay chip for image galleries and photo carousels.

Quick Preview

View All 35 Photos

Usage

import { GalleryIndicator } from "@giddaa-housing/ui/gallery-indicator";

<GalleryIndicator photoCount={35} />
<GalleryIndicator currentPhoto={1} totalPhotos={5} />

Examples

Sizes

Use size to match the image surface. Small works in cards and thumbnails, medium works in standard galleries, and large works in prominent hero placements.

View All 12 PhotosSm
View All 24 PhotosMd
View All 35 PhotosLg

Counter

Pass currentPhoto and totalPhotos for compact carousel position counters.

1/52/812/24

Props

Prop/APITypeDefaultDescription
size`"sm""md""lg"`
photoCountnumber35Total photo count used by the default view-all label.
currentPhotonumber-Current photo index. When provided, the indicator renders a compact position counter.
totalPhotosnumberphotoCountTotal photo count used by the compact position counter.
labelstring-Overrides the generated label.
childrenReactNode-Replaces the generated label content.
classNamestring-Local layout or positioning overrides.
native span propsReact span props-Passed through to the root element.

Accessibility

  • Place the indicator over real imagery; the glass treatment is intentionally tuned for photographic backgrounds.
  • Keep the generated text visible or provide equivalent accessible text when overriding children.
  • If the indicator opens a gallery, wrap it in an interactive control rather than adding click handlers to the indicator itself.

On this page