Website kits › Squint › Bag and checkout

Bag and checkout

One bag for every page and a prescription step that checks SPH, CYL, AXIS, ADD and PD as you type.

Bag and checkout is a bag and checkout 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: shared bag, prescription validation, lab-day dates.

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.

Bag and checkout props

PropTypeDefaultDescription
darkboolean
photosRecord<string
seedboolean
onOrder(order: { lines: SgLine[]; total: number; express: boolean; email: string; }) => voidCalled with the order once every field checks out. Send it to your payment provider here.
onNavigate(page: string) => void

Methods on the ref

Use it in React

import SquintBag from './SquintBag';

<SquintBag />

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

More in Squint

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