Component packs › Snippet › Grid Planner

Grid Planner

Drag the next nine posts into order; each photo’s colour is read from its pixels and neighbours that look alike are outlined.

Grid Planner is a planner from Snippet, a component pack with 7 preview components: Seven preview components that show how a page or post will look before it goes out, measured, not guessed. Price: $2 for the whole pack.

Built with: FLIP reorder, pixel colour read, colour distance check.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Grid Planner props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosstring[]
srcsRecord<stringYour own photo URLs keyed by the ids above (served with CORS so colours can be read).
alikenumberHow alike two neighbours may be, as a colour distance (lower is stricter).
onChange(order: string[]) => void

Methods on the ref

Use it in React

import GridPlanner from './GridPlanner';

<GridPlanner />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Snippet

Good for: SEO and social preview components.