Website kits › Hemline › Bag

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.

Bag props

PropTypeDefaultDescription
darkboolean
autoplayboolean
seedbooleanPut two pieces in an empty bag so the page has something to show (store demo).
photosRecord<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 }) => voidCalled with the order when payment succeeds. Wire your payment provider here.

Methods on the ref

Use it in React

import HemlineBag from './HemlineBag';

<HemlineBag />

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

More in Hemline

Good for: Clothing store website.