Sections
All-AccessNewWebGLPricing as pools of liquid colour: the pointer stirs the liquor and switching to the yearly period steeps every pool a step deeper.
Use it for a three-tier subscription with a monthly and a yearly period.
pnpm dlx shadcn@latest add @motionkit-pro/steepnpx shadcn@latest add @motionkit-pro/steepyarn dlx shadcn@latest add @motionkit-pro/steepbunx --bun shadcn@latest add @motionkit-pro/steepRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { Steep } from "@/components/sections/steep"
export default function Page() {
return (
<Steep
variant="pools"
content={{
title: "Plans that grow with you",
tiers: [
{
name: "Starter",
line: "For one person trying it out.",
price: { monthly: "$12", yearly: "$120" },
includes: ["One workspace", "Email support"],
action: { label: "Start with Starter", href: "/signup?plan=starter" },
},
// two more tiers; mark one `recommended: true`
],
}}
/>
)
}Every text sits in one typed content prop; each key you pass replaces the default copy (a tea
subscription), so pass at least title and tiers.
| Key | Type | Notes |
|---|---|---|
eyebrow | ReactNode | Small caps line above the title. |
title | ReactNode | The heading (h2); <em> is set in italic. |
lede | ReactNode | One sentence beside the toggle (hidden below 860 px). |
tiers | SteepTier[] | Three tiers; only the first three are shown. |
periodLabels | { monthly: string; yearly: string } | Labels of the toggle. |
periodLabel | string | Accessible name of the toggle. |
per | { monthly: string; yearly: string } | Unit after each price. |
periodNote | { monthly; yearly } | Line next to the toggle, announced when the period changes. |
footnote | ReactNode | Small print under every action. |
recommendedLabel | string | Screen-reader name of the leaf on the recommended tier. |
A tier is { name, line, price: { monthly, yearly }, note?, includes, action: { label, href? | onClick? }, recommended? }.
Prices are strings, so any currency or format works; long prices wrap under the unit.
None: the pools are drawn, so there is nothing to supply.
pools (default): preview it with ?demo=default.gradient: preview it with ?demo=gradient.single: preview it with ?demo=single.Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. pools are the three
liquors, light to dark; deep are the yearly ones (by default each pool steeped toward the next,
by steep); paper is the bare paper, ink and cream the text on light and on dark liquor. The
text side of each pool is picked from its lightness, and the liquor behind copy is clamped to AA.
<Steep
colors={{
pools: ["#c5b3ea", "#43c0f3", "#006a65"],
deep: ["#a58fd6", "#1f8fc4", "#004a47"],
paper: "#e7f4ff",
ink: "#311e36",
cream: "#eaf7ff",
}}
/>use-prefers-reduced-motion, fx-runtime, fx-glsl.stack: columns stack, text first. Vertical scroll is never blocked.
A still frame of the pools with one slow turn on the recommended tier; the period toggle cross-fades in 0.5 s.
ogl and the WebGL engine load the first time the section enters the viewport; until then (and
when WebGL is missing) every tier shows its pool as a flat colour.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 frame of the pools with one slow turn on the recommended tier; the period toggle cross-fades in 0.5 s.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)