Sections
All-AccessNewCanvasTowing-tank lab opening, dye filaments part around a hull and the finger
Use Streakline as the hero of a lab, an engineering studio or any product about flow: dye filaments run across a towing tank and part around a hull, the copy and the hand; the navigation tags float on the water.
pnpm dlx shadcn@latest add @motionkit-pro/streaklinenpx shadcn@latest add @motionkit-pro/streaklineyarn dlx shadcn@latest add @motionkit-pro/streaklinebunx --bun shadcn@latest add @motionkit-pro/streaklineRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { Streakline } from "@/components/sections/streakline"
export default function Page() {
return (
<Streakline
content={{
brand: "Harbour Flow",
brandNote: "Tank 1 · Hamburg",
nav: [
{ label: "Services", href: "/services" },
{ label: "Contact", href: "/contact" },
],
headline: (
<>
We watch <em>water</em> move.
</>
),
lede: "Model tests for hulls, keels and rudders.",
primary: { label: "Book a test", href: "/book" },
secondary: null,
}}
/>
)
}fonts sets the display, body and mono families; onNavigate gets every nav click.
Every text sits in one typed content prop; each key you pass replaces the default copy (a
towing-tank lab in Auckland).
| Key | Type | Notes |
|---|---|---|
brand | string | Name on the manifold cap. |
brandNote | ReactNode | Stamped under the brand. |
brandHref | string | Link of the brand. |
nav | { label, href, current? }[] | Navigation tags. |
menuLabel | string | The menu button on phones. |
headline | ReactNode | The h1; <em> for the emphasis, <br /> for breaks. |
lede | ReactNode | Line under the headline. |
primary | { label, href } | The main action. |
primaryNote | ReactNode | Small line under the actions. |
secondary | { label, href, meta? } | null | The quiet second action. |
hull (default): a hull sits in the tank and the filaments part around it. Preview it with
?demo=default.open: an open tank, the filaments part only around the copy and the hand. Preview it with
?demo=open.Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. bed is the tank bed (the
background), ink the text, field the dye of the filaments, divider and slug the accent dyes,
hull the hull, paper the tags.
<Streakline
colors={{
bed: "#f7f6f0",
ink: "#1d2433",
field: "#2c4fa8",
divider: "#e5c534",
slug: "#d9434f",
hull: "#2e5c63",
paper: "#f1ead9",
}}
/>use-prefers-reduced-motion, fx-runtime, section-runtime.stack: the copy first, the tank around it. On touch screens a slow finger drifts through the
tank on its own; vertical scroll is never blocked.
A still of the filaments parted around the hull and the copy; focusing a nav tag recolours its filament instead of sending dye.
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 of the filaments parted around the hull and the copy; focusing a nav tag recolours its filament instead of sending dye.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)