Website kits › Hemline › Bag
One bag shared by every page, edits against what is left in the run, and a checkout that validates as you go.
Bag is a cart and checkout from Hemline, a website kit with 5 pages: An editorial fashion store website with a floating-photo index and a lookbook you shop in one tap. Price: $5 for the whole pack.
Built with: shared bag, inline validation, receipt.
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 | ||
seed | boolean | Put two pieces in an empty bag so the page has something to show (store demo). | |
photos | Record<string | ||
onNavigate | (page: string) => void | ||
onAction | (id: string) => void | ||
onPay | (order: { lines: { id: string; size: string; qty: number; price: number }[]; delivery: string; total: number; email: string }) => void | Called with the order when payment succeeds. Wire your payment provider here. |
destroy(): voidimport HemlineBag from './HemlineBag';
<HemlineBag />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Clothing store website.