Sections
SignatureNewCanvasTrail-grooming report footer drawn as a groomed cross-country lane from above in low sun; the set classic track is the rule and a skier follows the pointer inside it
Use Corduroy as the footer of a product with a live status (conditions, uptime, a daily report), a short email sign-up and up to four groups of links.
pnpm dlx shadcn@latest add @motionkit-pro/corduroynpx shadcn@latest add @motionkit-pro/corduroyyarn dlx shadcn@latest add @motionkit-pro/corduroybunx --bun shadcn@latest add @motionkit-pro/corduroyRequires a Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { Corduroy } from "@/components/sections/corduroy"
export default function Page() {
return (
<Corduroy
content={{
brand: "Acme",
gloss: undefined,
line: (
<>
Know before <em>you go.</em>
</>
),
live: undefined,
groups: [
{
title: "Product",
links: [
{ label: "Pricing", href: "/pricing" },
{ label: "Changelog", href: "/changelog", note: "weekly" },
],
},
{ title: "Company", links: [{ label: "About", href: "/about" }] },
],
legal: "© 2026 Acme Inc.",
season: undefined,
}}
onSubscribe={(email) => fetch("/api/alerts", { method: "POST", body: email })}
/>
)
}Every text sits in one typed content prop; each key you pass replaces the default copy (a
trail-grooming report), so pass at least brand, line, groups, alerts and legal.
| Key | Type | Notes |
|---|---|---|
brand | string | Wordmark beside the set-track mark. |
homeHref | string | Link of the wordmark. |
homeLabel | string | Accessible name of the wordmark link (default "brand, home"). |
gloss | ReactNode | Mono line under the wordmark. |
line | ReactNode | The footer's line; <em> is set in italic. |
live | { label, time, dateTime, detail, link? } | One live status line; undefined hides it. |
groups | { title, links: { label, href, note? }[] }[] | Link groups, drawn as trail signs; four fit one row. |
navLabel | string | Accessible name of the navigation landmark. |
alerts | { title, label, button, invalidMessage, ... } | The email form (see CorduroyAlerts). |
legal | ReactNode | Small print. |
legalLinks | { label, href }[] | Links beside the small print. |
season | ReactNode | Appended to the small print. |
CorduroyAlerts is { title, label, placeholder?, button, reassurance?, invalidMessage, successMessage, errorMessage }. onSubscribe(email) is called with a valid address; a rejected
promise shows errorMessage.
None: the snow is painted, so there is nothing to supply.
dawn (default): low sun, long shadows, warm ridges. Preview it with ?demo=default.noon: sun high, cool ridges, short shadows. Preview it with ?demo=noon.Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. snow, lit, shade
and groove are the four tones of the snow (the copy keeps AA on all of them), ink the text and
the skier, route the trail-blaze orange, hat the skier's hat and the error blaze, sign the
enamel of the signs and the button lettering, post the wooden posts, ok the success blaze and
blazes the middle band of each group's blaze, in order. noon starts from its own snow colours
(CORDUROY_NOON_COLORS).
<Corduroy
colors={{
snow: "#fbf6ee",
lit: "#f6dcbf",
shade: "#c3cfe3",
groove: "#7f97c2",
ink: "#1b2848",
route: "#ee7a2a",
hat: "#c8312b",
blazes: ["#c8312b", "#2f5aa8", "#2f8a55", "#f0c419"],
}}
/>use-prefers-reduced-motion, fx-runtime, section-runtime.footer landmark with a labelled nav; each sign is a heading with its list. The email field
has a visible label, aria-invalid and a polite status line.stack: the signs go two by two and the track gets shorter. On touch screens the skier strides
along the track on his own; vertical scroll is never blocked.
The skier stands still at the trailhead with three pole plants behind him; the snow is painted once.
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 skier stands still at the trailhead with three pole plants behind him; the snow is painted once.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)