Search for a command to run...
Integrating BProgress in your Next.js app.
pnpm dlx shadcn@latest add https://ui-x.junwen-k.dev/r/bprogress-provider-next-app.json
Wrap your root layout with the <BProgressProvider />
component:
import { BProgressProvider } from "@/components/bprogress-provider";
export default function RootLayout({ children }: RootLayoutProps) {
return (
<html lang="en">
<head />
<body>
<BProgressProvider>{children}</BProgressProvider>
</body>
</html>
);
}
pnpm dlx shadcn@latest add https://ui-x.junwen-k.dev/r/bprogress-provider-next-pages.json
Wrap your root layout with the <BProgressProvider />
component:
import { BProgressProvider } from "@/components/bprogress-provider";
export default function App({ Component, pageProps }: AppProps) {
return (
<BProgressProvider>
<Component {...pageProps} />
</BProgressProvider>
);
}