Sections
FreeNewCanvasA closing call to action set on the signal flag a ship hoists before she sails: the panel is the flag's white, and the pointer's wind sends folds from hoist to fly.
Use it as the last ask of a page: one decision, one date, a few places left. Any two-colour flag works, so it takes a brand's own pair.
pnpm dlx shadcn@latest add @motionkit/blue-peternpx shadcn@latest add @motionkit/blue-peteryarn dlx shadcn@latest add @motionkit/blue-peterbunx --bun shadcn@latest add @motionkit/blue-peterRequires the @motionkit namespace in components.json. See Installation.
The files land in components/sections/.
import { BluePeter } from "@/components/sections/blue-peter"
export default function Page() {
return <BluePeter variant="frame" />
}frame (default): preview it with ?demo=default.halves: preview it with ?demo=halves.swallowtail: preview it with ?demo=swallowtail.Every text, button names included, lives in one typed content prop; keys you leave out keep the demo copy shown above.
<BluePeter content={{ title: "Your title" }} />Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH.
<BluePeter
colors={{
field: "#8b2400",
panel: "#e7f4ff",
rope: "#88c0dc",
brass: "#5abdf2",
signal: "#00a685",
ink: "#2c1302",
}}
/>use-prefers-reduced-motion, fx-runtime, motion-presets, motion-kit.stack: columns stack, text first. Vertical scroll is never blocked.
The flag at rest with three soft folds near the fly; the count shows its final number and the button keeps a static glow.
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 flag at rest with three soft folds near the fly; the count shows its final number and the button keeps a static glow.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)