Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

466 B
Raw Blame
"use client";

import { RootProvider } from "fumadocs-ui/provider/next";
import { lazy, type ReactNode } from "react";

const Search = lazy(() => import("./search"));

export function Provider({ children }: { children: ReactNode }) {
  return (
    <RootProvider
      search={{ SearchDialog: Search, preload: false }}
      theme={{ attribute: ["class", "data-theme"], defaultTheme: "system", enableSystem: true }}
    >
      {children}
    </RootProvider>
  );
}