Sections
All-AccessNewWebGLCanvasClient wall of a bespoke joiner, filtered by sector
Use Inlay as the client wall of a maker, studio or agency with a small set of named clients: every mark is cut in three woods into one marquetry panel, and the pointer is a lamp that makes the grain of each piece swing between light and dark.
pnpm dlx shadcn@latest add @motionkit-pro/inlaynpx shadcn@latest add @motionkit-pro/inlayyarn dlx shadcn@latest add @motionkit-pro/inlaybunx --bun shadcn@latest add @motionkit-pro/inlayRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/ (inlay.tsx and inlay-marks.ts, the eight sample marks).
import { Inlay, type InlayMark } from "@/components/sections/inlay"
const acme: InlayMark = {
width: 200,
height: 80,
pieces: [
{ wood: "dark", grain: 0, d: "M10 10h60v60H10Z" },
{ wood: "dyed", grain: 90, d: "M25 25h30v30H25Z" },
{
wood: "mid",
grain: 0,
text: { value: "ACME", x: 84, y: 52, size: 30, font: "Georgia", weight: 700 },
},
],
}
export default function Clients() {
return (
<Inlay
content={{
heading: (
<>
Rooms we <em>built</em>.
</>
),
clients: [
{ name: "Acme", sector: "retail", mark: acme, href: "/work/acme", note: "Shop · 2024" },
],
sectors: [
{ value: "all", label: "All", total: 40, noun: "projects" },
{ value: "retail", label: "Retail", total: 12, noun: "shops" },
],
}}
/>
)
}Every text sits in one typed content prop; each key you pass replaces the default copy (a
joinery in Cork).
| Key | Type | Notes |
|---|---|---|
clients | { name, sector, mark, href, note }[] | One veneer leaf each; eight fill the panel. mark is SVG data (below). |
sectors | { value, label, total, noun }[] | The filter; value all shows every client. total and noun feed the count line. |
eyebrow | ReactNode | Small line above the heading. |
heading | ReactNode | The heading (h2); <em> is set in the dyed wood's hue. |
lede | ReactNode | One line under the heading (hidden in frieze). |
makerLine | ReactNode | Signed line in the corner of the panel. |
filterLabel | string | Accessible name of the filter. |
listLabel | string | Accessible name of the client list. |
count | (total, noun) => string | The count line after the number ("of 19 afloat"). |
A mark is { width, height, pieces }: each piece is dark, mid or dyed wood with a grain
angle (0 along the panel, 90 across) and either SVG path data d (filled even-odd) or text
cut from one leaf. Different grain angles are what separate the pieces under the lamp. Use the
fonts your page loads for the lettering. sector, defaultSector and onSectorChange control
the filter.
panel (default): three staggered courses beside the copy. Preview it with ?demo=default.frieze: one 120 px band under the heading. Preview it with ?demo=frieze.fumed: a dark fumed ground with pale marks. Preview it with ?demo=fumed.Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. panel/frieze and
fumed have their own palettes; the colours you pass replace only those keys. ground is the
veneer the copy sits on, dark, mid and dyed the three woods of every mark (dyed also tints
the heading's italic), ink the text, holly the stringing line and the focus ring. sheen
(0 to 1.5) sets how strongly the grain swings under the lamp.
<Inlay
colors={{
ground: "#e2cfa8",
dark: "#5b3b25",
mid: "#a65c38",
dyed: "#1f6f78",
ink: "#2d2016",
holly: "#f3ecdc",
}}
/>use-prefers-reduced-motion, fx-runtime, fx-glsl, section-runtime.stack: the copy over a two-column panel. On touch screens the lamp swings slowly on its own;
vertical scroll is never blocked.
The panel is still under a fixed lamp; filtering sinks the other marks at once, with no grain turning.
ogl loads the first time the section nears the viewport; until then (and without WebGL) the
marks are plain SVG in the three woods.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 panel is still under a fixed lamp; filtering sinks the other marks at once, with no grain turning.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)