Zostel
Stays Gallery

Gallery

Swipe through a place — pictures in one shape, arrows and arrow keys.

Preview

Valleys: CLIMB · GAZE · REST · RISE
Waters: PLAY · STRETCH · LIFT · BREATHE
Fields: RUN · CLIMB · CHASE · LAUGH
Flowers: MEET · DANCE · EAT · BELONG
Sunny Days: EXPLORE · SEE · TRAVEL · GROW

Usage

tsx
import { Gallery } from "zostel-ui";

<Gallery
  images={[
    { src: "/brand/scenes/valleys.svg", alt: "Valleys" },
    { src: "/brand/scenes/waters.svg", alt: "Waters" },
  ]}
  aspectRatio={16 / 9}
/>

Props

images
Type: { src: string; alt: string }[]
Default: —

The pictures; say what each shows in alt.

aspectRatio
Type: number
Default: 16 / 9

Width ÷ height, for all of them.

className
Type: string
Default: —

More classes, merged with the component’s own (tailwind-merge).