Website kits › Squint › Shop

Shop

Filter by shape, face, width and material with live counts; once your size is known every card says how many millimetres off it is.

Shop is a collection page from Squint, a website kit with 5 pages: A working eyewear store: look through each lens at a real lake, fit by the millimetre, prescriptions at checkout. Price: $5 for the whole pack.

Built with: live facet counts, fits me, FLIP grid.

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.

Shop props

PropTypeDefaultDescription
darkboolean
photosRecord<string
kindstringStart on 'Sunglasses' or 'Optical'.
seedboolean
onNavigate(page: string) => void

Methods on the ref

Use it in React

import SquintShop from './SquintShop';

<SquintShop />

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

More in Squint

Good for: Eyewear store website, UK (pounds).