feat: add motion provider (no theme provider here)
This commit is contained in:
16
app/providers.tsx
Normal file
16
app/providers.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
"use client";
|
||||
|
||||
import { LazyMotion, domAnimation, MotionConfig } from "motion/react";
|
||||
|
||||
export function Providers({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<LazyMotion features={domAnimation} strict>
|
||||
<MotionConfig
|
||||
reducedMotion="user"
|
||||
transition={{ duration: 0.3, ease: [0.22, 1, 0.36, 1] }}
|
||||
>
|
||||
{children}
|
||||
</MotionConfig>
|
||||
</LazyMotion>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user