Website kits › Chalkline › Cloth

Cloth

Every cloth as a large swatch of its real weave with mill, weight and season; pick up to four for free posted swatches.

Cloth is a catalogue page from Chalkline, a website kit with 5 pages: A made-to-measure tailor website where the real suit photo is re-woven in the cloth you pick. Price: $5 for the whole pack.

Built with: real weave swatches, season filter, swatch request.

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.

Cloth props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosRecord<string
onNavigate(page: string) => void
onAction(id: string) => void
onSwatches(r: { cloths: string[]; name: string; postcode: string; email: string }) => void

Methods on the ref

Use it in React

import ChalklineCloth from './ChalklineCloth';

<ChalklineCloth />

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

More in Chalkline

Good for: Tailor website.