Component packs › Snippet › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | ||
autoplay | boolean | ||
photos | string[] | ||
srcs | Record<string | Your own photo URLs keyed by the ids above (served with CORS so colours can be read). | |
alike | number | How alike two neighbours may be, as a colour distance (lower is stricter). | |
onChange | (order: string[]) => void |
destroy(): voidimport GridPlanner from './GridPlanner';
<GridPlanner />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: SEO and social preview components.