Sections
SignatureNewWebGLA hero over a marbled sheet that the cursor rakes with a comb; three base patterns and an ink palette.
Use it as the hero of a brand that makes things by hand: the copy sits on bare paper, the pointer rakes the marbled sheet beside it and the sheet slowly settles back.
pnpm dlx shadcn@latest add @motionkit-pro/combednpx shadcn@latest add @motionkit-pro/combedyarn dlx shadcn@latest add @motionkit-pro/combedbunx --bun shadcn@latest add @motionkit-pro/combedRequires a Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { Combed } from "@/components/sections/combed"
export default function Page() {
return (
<Combed
variant="chevron"
content={{
brand: "Studio North",
nav: [
{ label: "Work", href: "/work" },
{ label: "About", href: "/about" },
],
headline: "Made slowly,\nkept for\nyears.",
lede: "One sentence about what you make.",
primary: { label: "See the work", href: "/work" },
}}
/>
)
}Every text sits in one typed content prop; each key you pass replaces the default copy (a
Venetian bindery).
| Key | Type | Notes |
|---|---|---|
brand | ReactNode | Wordmark top left. |
brandNote | string | Small line under it. |
nav | { label, href }[] | Links on the paper label pasted on the sheet. |
navEnd | { label, href } | Last item of the label (bag, account). |
navLabel | string | Accessible name of the navigation. |
menu | { label, aria } | The small-screen menu button. |
eyebrow | string | Small caps line above the headline. |
headline | string | \n breaks lines; the last word is set in italic. |
lede | ReactNode | Paragraph under the headline. |
primary | { label, href } | Filled action. |
secondary | { label, href } | Quiet action. |
facts | { value, label }[] | Up to four facts along the bottom ([] hides them, as the demo). |
tag | { label, value } | Hand-numbered label on the sheet. |
None: the marbling is drawn, so there is nothing to supply.
chevron (default): drops raked into chevrons. Preview it with ?demo=default.stone: plain stone drops. Preview it with ?demo=stone.bouquet: chevrons cross-raked into bouquets. Preview it with ?demo=bouquet.seed gives a different sheet with the same pattern.
Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. inks are the 2 to 6
floating colours, vein the lines between the drops, ground the bath, paper the bare paper,
ink the text on it (and the tint of the shadows), accent the primary action.
<Combed
colors={{
inks: ["#d2452f", "#2f8a9a", "#f0c24b", "#27407e", "#c87a45"],
vein: "#f6efdf",
ground: "#1f2a55",
paper: "#f7f1e6",
ink: "#1f2550",
accent: "#b2321f",
}}
/>use-prefers-reduced-motion, fx-runtime, fx-glsl, section-runtime.h1; its paper-white copy over the ink is decorative and hidden.stack: the sheet moves above the copy. On touch a slow figure-eight rakes the sheet until a
finger lands; vertical scroll is never blocked.
A still marbled sheet in the chosen pattern.
ogl and the WebGL engine load the first time the hero nears the viewport; until then (and
when WebGL is missing) a CSS drawing of the drops stands in.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.
—
A still marbled sheet in the chosen pattern.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)