Sections
All-AccessNewCanvasWalking-time map maker, Valparaíso street plan, vermilion ink wicks from the pin
Use On foot as the hero of a mapping, mobility or city product: a vermilion ink wicks out from a pin along a street plan, as far as people really walk in the minutes chosen on the scale bar.
pnpm dlx shadcn@latest add @motionkit-pro/on-footnpx shadcn@latest add @motionkit-pro/on-footyarn dlx shadcn@latest add @motionkit-pro/on-footbunx --bun shadcn@latest add @motionkit-pro/on-footRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { OnFoot } from "@/components/sections/on-foot"
export default function Page() {
return (
<OnFoot
content={{
brand: { name: "Walkline", place: "Your city", sheet: "sheet 1", href: "/" },
headline: { lead: "{minutes}\nminutes away", emphasis: "on foot." },
lede: "Maps of how far people really walk.",
action: { label: "Try it", href: "/start" },
}}
defaultMinutes={10}
/>
)
}minutes / defaultMinutes / onMinutesChange control the scale bar (5 to 20); fonts sets the
display, text and mono families.
Every text sits in one typed content prop; each key you pass replaces the default copy (a
walking-time map maker in Valparaíso).
| Key | Type | Notes |
|---|---|---|
brand | { name, place, sheet, href } | Title cartouche of the sheet. |
nav | { label, href, sample, current? }[] | Navigation drawn as the map legend; sample is the line drawn beside it. |
headline | { lead, emphasis } | lead may hold {minutes} (the spelled number) and \n breaks. |
lede | string | Line under the headline. |
action | { label, href } | The main action. |
reassurance | string | Small line under it. |
legend | string | Title of the legend and of its toggle on phones. |
navLabel | string | Accessible name of the navigation. |
scale | string | Scale printed beside the legend title. |
minutesLabel | string | Label of the minutes slider. |
The street plan is a fixed drawing of Valparaíso's hills, stairs and ascensores, and the readout under the slider names its places: it is part of the section, not a prop.
streets (default): the ink weighted by street size. Preview it with ?demo=default.ascensor: the ascensores ridden as a 90 s lift, so the reach blooms again uphill. Preview it
with ?demo=ascensor.Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. ink is the wicking ink,
sheet the paper, plan the street plan, bay the sea, text the copy.
<OnFoot
colors={{
ink: "#e2532d",
sheet: "#f6f1e3",
plan: "#2b3f8f",
bay: "#dbe8ef",
text: "#1f2433",
}}
/>use-prefers-reduced-motion, fx-runtime, section-runtime.stack: the copy first, the sheet behind it; the legend folds behind a toggle. On touch screens a
ghost hand strolls a block every eight seconds and a tap walks the pin there; vertical scroll is
never blocked.
One still reach from the default pin; slider changes cross-fade the ink.
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, @radix-ui/react-slider.
—
One still reach from the default pin; slider changes cross-fade the ink.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)