Sections
All-AccessNewA Christmas hero lit by a folded paper star lamp on its cord: the hand pushes the lamp, its pool of light swings on the wall half a beat late and the gifts hang below as paper tags.
Use it as the December opening of a shop or a studio: one campaign, one primary action, a last-order date and three ways into the gifts.
pnpm dlx shadcn@latest add @motionkit-pro/paper-starnpx shadcn@latest add @motionkit-pro/paper-staryarn dlx shadcn@latest add @motionkit-pro/paper-starbunx --bun shadcn@latest add @motionkit-pro/paper-starRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { PaperStar } from "@/components/sections/paper-star"
export default function Page() {
return <PaperStar variant="star" />
}star (default): preview it with ?demo=default.honeycomb: preview it with ?demo=honeycomb.row: preview it with ?demo=row.Every text, button names included, lives in one typed content prop; keys you leave out keep the demo copy shown above.
<PaperStar content={{ title: "Your title" }} />Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH.
<PaperStar
colors={{ wall: "#301e37", paper: "#d7f3ff", light: "#59dcff", cord: "#009d7a", ink: "#daf2ff" }}
/>use-prefers-reduced-motion, fx-runtime, motion-presets, motion-kit.stack: columns stack, text first. Vertical scroll is never blocked.
The lamp hangs plumb and still with its pool and rays on the wall, which is its best frame; links keep their colour change and the countdown still counts.
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 lamp hangs plumb and still with its pool and rays on the wall, which is its best frame; links keep their colour change and the countdown still counts.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)