Website kits › Salve › Bag and checkout

Bag and checkout

One bag shared by every page, delivery that changes the total and the arrival date, and a checkout that checks every field inline.

Bag and checkout is a bag and checkout from Salve, a website kit with 5 pages: A working skincare store: real bottles, labels that open into the full ingredient list, one shared bag. Price: $5 for the whole pack.

Built with: shared bag, inline validation, working-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.

Bag and checkout props

PropTypeDefaultDescription
darkboolean
photosRecord<string
seedboolean
onOrder(order: { lines: SdLine[]; total: number; express: boolean; email: string; }) => voidCalled with the order once every field checks out. Send it to your payment provider here.
onNavigate(page: string) => void

Methods on the ref

Use it in React

import SalveBag from './SalveBag';

<SalveBag />

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

More in Salve

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