Sections
SignatureNewCanvasAleppo laurel soap: every question is a length of cured soap; opening one pulls the wire through and the answer sits on the green inside
Use it as the FAQ of a maker whose product has an inside worth showing: every question is a length of cured soap, and opening one pulls a wire through it so the answer sits on the fresh face.
pnpm dlx shadcn@latest add @motionkit-pro/curednpx shadcn@latest add @motionkit-pro/curedyarn dlx shadcn@latest add @motionkit-pro/curedbunx --bun shadcn@latest add @motionkit-pro/curedRequires a Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { Cured } from "@/components/sections/cured"
export default function Page() {
return (
<Cured
content={{
eyebrow: "Maker name · Town",
title: "Questions, answered.",
items: [
{ id: "ship", question: "Do you ship abroad?", answer: <p>Yes, every Monday.</p> },
{ id: "keep", question: "How do I keep it?", answer: <p>Dry, between uses.</p> },
],
offcut: <a href="mailto:hello@example.com">hello@example.com</a>,
brandSeal: undefined,
}}
syncHash
/>
)
}syncHash keeps the open question in the URL hash; multiple lets several stay open (default in
cut); defaultOpen takes item ids. Fonts come from --cured-display, --cured-sans and
--cured-mono.
stack (default): aligned courses, one bar open. Preview it with ?demo=default.tower: a narrow column; courses alternate long face and bar ends. Preview it with
?demo=tower.cut: every bar cut and every answer open; prints whole. Preview it with ?demo=cut.Every text, button names included, lives in one typed content prop; keys you leave out keep the demo copy shown above.
<Cured content={{ title: "Your title" }} />| Key | Type | Notes |
|---|---|---|
items | { id, question, answer }[] | One bar each; answer is any ReactNode. |
eyebrow, title, lede, caption | ReactNode | Copy around the stack. |
boil | { label, value }[] | Batch facts beside the title. |
offcut | ReactNode | The half bar at the foot: a closing line or contact. cu-band-k and cu-band-t style a kicker and a line. |
brandSeal | { ring, center, sub? } | Seal pressed into the first bar; undefined leaves it out. |
list | string | Accessible name of the list. |
numerals | (n) => [string, string] | The two numerals stamped on a bar. |
Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH.
<Cured
colors={{
crust: "#71cbef",
seal: "#00616e",
green: "#454a7e",
wall: "#ead8e3",
cream: "#e7f4ff",
ink: "#211c2b",
}}
/>use-prefers-reduced-motion, fx-runtime, section-runtime.stack: columns stack, text first. Vertical scroll is never blocked.
The bars lie still under the window light; opening a question shows the cut green face and the answer at once, without the wire.
pnpm size).Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Not measured yet · budget 16.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom.
—
The bars lie still under the window light; opening a question shows the cut green face and the answer at once, without the wire.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)