logoRuru UI

Provider

The Provider component is used to provide a context to all components in the tree.

RuruProvider

The RuruProvider component is used to provide a context to all components in the tree.

layout.tsx
import { RuruProvider } from "@/provider";
 
export default function RootLayout() {
  return (
    <html lang="en">
      <body>
        <RuruProvider>{children}</RuruProvider>
      </body>
    </html>
  );
}

props

nametypedefaultdescription
childrenReactNode-The children to render.
togleThemeAnimationbooleanfalseEnable or disable the theme animation.
disableAnimationbooleanfalseEnable or disable the animation.

On this page