Sections
All-AccessNewCanvasBird-ringing station, nine people as nine moulted feathers fanned on one plate
Use Moult for a small team (up to nine) where a portrait photograph would be wrong: each person is the moulted feather of the first bird they ringed, fanned with the others on one field-guide plate, and the roster beside it is the plate's key.
pnpm dlx shadcn@latest add @motionkit-pro/moultnpx shadcn@latest add @motionkit-pro/moultyarn dlx shadcn@latest add @motionkit-pro/moultbunx --bun shadcn@latest add @motionkit-pro/moultRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { Moult, MOULT_DEFAULT_CONTENT } from "@/components/sections/moult"
const [first] = MOULT_DEFAULT_CONTENT.members
export default function Page() {
return (
<Moult
content={{
title: (
<>
Three of us, and the first bird each of us <em>held</em>.
</>
),
lede: "A ringing station on the coast.",
groups: [{ value: "ringers", label: "Ringers" }],
members: [
{
...first!,
name: "Ana Ruiz",
role: "Head ringer",
since: 2019,
group: "ringers",
href: "mailto:ana@example.org",
},
],
opening: null,
caption: "Plate I · all feathers at one scale",
}}
/>
)
}Each member's bird describes the feather: species, scientific, feather, kind, length in
mm (every feather is drawn at one scale), width, its colors (down, main, inner, mark, tip,
shaft) and pattern. The default content has seven species to start from.
Every text sits in one typed content prop; each key you pass replaces the default copy (a
bird-ringing station in the Colombian Andes).
| Key | Type | Notes |
|---|---|---|
members | MoultMember[] | Up to nine: name, role, since, group, bird, net, date, bio, pliers, atNets, href. |
title | ReactNode | The heading (h2); <em> is set in italic, in accent. |
lede | ReactNode | One paragraph under the title. |
groups | { value, label }[] | Filter options; "all" is added first. |
allLabel | string | The "all" option. |
filterLabel | string | The filter's name. |
opening | { title, role, href, note? } | null | The empty place on the plate, a hiring link; null hides it. |
caption | ReactNode | The plate caption beside the scale bar. |
countLine | ({ people, species, atNets }) => string | Live count under the filter. |
listLabel | string | Accessible name of the roster. |
since | (year) => string | The year line of each row. |
write | (first) => string | The write link in an open row. |
ring | { closed, open } | Tooltip of the ring glyph (in the field this week or not). |
wing (default): the plate printed straight on the board. Preview it with ?demo=default.sheet: the same plate mounted on one rag-paper herbarium sheet, each feather held by a paper
strip. Preview it with ?demo=sheet.Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. ground is the board,
paper the mounting sheet and strips, ink the text, pencil the numbers, key circle, underlines
and scale bar, accent the title's italic word and the hovered feather's number, shadow the
feathers' shadows and the focus rings. Each feather keeps the colours of its bird.
<Moult
colors={{
ground: "#ebe3d3",
paper: "#f7f2e8",
ink: "#1f2533",
pencil: "#5c6170",
accent: "#d24a1c",
shadow: "#22408f",
}}
/>use-prefers-reduced-motion, fx-runtime, section-runtime.stack: the title, then the plate, then the key and the roster. On touch screens a slow draught
crosses the plate now and then and scrolling ruffles the feathers lightly; vertical scroll is never
blocked.
The plate is painted once with every vane smooth; filtering and hovering fade or lift the feathers at once, and the hand does not split the vanes.
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 plate is painted once with every vane smooth; filtering and hovering fade or lift the feathers at once, and the hand does not split the vanes.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)