Website kits › Squint › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | ||
photos | Record<string | ||
seed | boolean | ||
onOrder | (order: { lines: SgLine[]; total: number; express: boolean; email: string; }) => void | Called with the order once every field checks out. Send it to your payment provider here. | |
onNavigate | (page: string) => void |
destroy(): voidimport SquintBag from './SquintBag';
<SquintBag />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Eyewear store website, UK (pounds).