Sections
All-AccessNewCanvasA mycelium lab's notebook as a spore-print sheet: unread entries are caps; reading one lifts it off the print its gills dropped
Use Spore print as the index of a lab notebook, journal or blog. The section is the sheet a mycologist leaves under mushroom caps overnight, half black, half white: every unread entry is a cap resting gill-side down, and reading it lifts the cap and sets it beside the print its gills dropped, a wheel of dust generated from the entry itself.
pnpm dlx shadcn@latest add @motionkit-pro/spore-printnpx shadcn@latest add @motionkit-pro/spore-printyarn dlx shadcn@latest add @motionkit-pro/spore-printbunx --bun shadcn@latest add @motionkit-pro/spore-printRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { SporePrint } from "@/components/sections/spore-print"
export default function Page() {
return (
<SporePrint
content={{
brand: "Acme Lab",
title: "Lab notes",
topics: ["Trials", "Field"],
posts: [
{
id: "first-trial",
title: "The first trial",
emphasis: "first",
standfirst: "What grew, what we measured, what we kept.",
author: "A. Writer",
date: "2026-01-10",
words: 1800,
topic: "Trials",
href: "/notes/first-trial",
},
],
}}
storageKey="acme:notes:read"
/>
)
}The read state is kept in localStorage under storageKey (null keeps it in memory);
defaultRead lists entries read before anything is stored. wordsPerMinute and wordsPerGill set
reading time and how many gill lines a print has; onOpen runs when an entry is opened. Fonts come
from the CSS variables --sp-serif, --sp-sans and --sp-mono.
Every text sits in one typed content prop; each key you pass replaces the default copy (a
mycelium lab's notebook).
| Key | Type | Notes |
|---|---|---|
posts | { id, title, emphasis?, standfirst, author, date, words, topic, href, specimen? }[] | Newest first; id also seeds the print. |
topics | string[] | In order; each takes the spore and cap colour at the same index. |
brand, eyebrow, title, lede | ReactNode | The heading block; title is the h2. |
topic, all, latest, earlier, read, min | string | Filter and list texts. |
lifted, reset, resetHint, showing | functions / string | Read count, reset button and filter announcement. |
split (default): the sheet half black, half white. Preview it with ?demo=default.white: all white, for light sites, dark prints. Preview it with ?demo=white.black: all black, a night bench with pale prints. Preview it with ?demo=black.Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. black and white are the
two halves of the sheet (keep black dark and white light for AA type), ink and cream the type on
each, spores and caps one colour per topic, in topics order.
<SporePrint
colors={{
black: "#17161c",
white: "#f8f6f0",
ink: "#1d1c22",
cream: "#f3eee2",
spores: ["#a8622f", "#3d2135", "#e6a991"],
caps: ["#7f5232", "#b0946a", "#cbb894"],
}}
/>use-prefers-reduced-motion, fx-runtime.stack: the heading, the topic slips, then the entries one under the other, each with its cap or print. On touch screens a tap opens an entry; vertical scroll is never blocked.
Caps rest in place and read entries sit beside their prints; opening an entry swaps the cap for its print with a short fade.
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.
—
Caps rest in place and read entries sit beside their prints; opening an entry swaps the cap for its print with a short fade.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)