Website kits › Socket › Bag and checkout
One bag for every page, arrival dated by delivery area and cut-off, and a checkout that checks every field inline.
Bag and checkout is a bag and checkout from Socket, a website kit with 5 pages: A working electronics store: pin any three to compare spec by spec, delivery dates by city, one shared bag. Price: $5 for the whole pack.
Built with: shared bag, inline validation, city delivery 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: SoLine[]; 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 SocketBag from './SocketBag';
<SocketBag />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Electronics store website, UK (pounds).