Scatter Photos

Polaroids scattered on a table: drag and fling them, they glide to a stop.

no dependenciesMIT · free
first light
the swell
low tide
deep blue
the reef
sundown

Installation

npx shadcn@latest add https://ombakui.com/r/scatter-photos.json

Usage

import { ScatterPhotos } from "@/components/scatter-photos";

<ScatterPhotos
  photos={[
    { src: "/a.jpg", caption: "first light" },
    { src: "/b.jpg", caption: "the swell" },
  ]}
/>

Props

PropTypeDefaultDescription
photos*ScatterPhoto[]–The photos to scatter.
sizenumber160Photo width in px.
classNamestring"h-[420px] w-full"Area size classes.