Website kits › Offcut › Bag

Bag

One bag shared by every page: edit against live stock, undo a removal, free-delivery line, and a checkout that validates as you go before the receipt.

Bag is a cart and checkout from Offcut, a website kit with 5 pages: A streetwear store website where the drop clock turns into live stock. 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
lightboolean
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 OffcutBag from './OffcutBag';

<OffcutBag />

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

More in Offcut

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