Motion engine (base)
blaze-motion/providerFreeBlock
The shared engine base every blaze-motion component needs — the single tune surface (the `feel` block in lib/motion.ts) plus the <MotionProvider>. Install once, retune everything from one place. Pulled in automatically by any component.
Install it
npx shadcn@latest add https://motion.asmitsah.dev/r/provider.jsonSource
1"use client";23import { domAnimation, LazyMotion, MotionConfig } from "motion/react";4import type { ReactNode } from "react";56/**7 * Mount ONCE in your root layout, wrapping {children}.8 * LazyMotion `strict` means primitives must import `m` from "motion/react-m" —9 * a raw `motion.*` will throw. `reducedMotion="user"` honors the OS setting.10 */11export function MotionProvider({ children }: { children: ReactNode }) {12 return (13 <LazyMotion features={domAnimation} strict>14 <MotionConfig reducedMotion="user">{children}</MotionConfig>15 </LazyMotion>16 );17}
What it pulls in
npm packages
Files it writes
More from blaze-motion
All 19 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| blaze-motionall | blaze-motion | Blocks | Free | 1 dep · 19 files |
