apps/mantine.dev/src/pages/x/nprogress.mdx
import { NprogressDemos } from '@docs/demos'; import { Layout } from '@/layout'; import { MDX_DATA } from '@/mdx';
export default Layout(MDX_DATA.Nprogress);
After installation import package styles at the root of your application:
import '@mantine/core/styles.css';
// ‼️ import nprogress styles after core package styles
import '@mantine/nprogress/styles.css';
Render the NavigationProgress component anywhere in your app within MantineProvider:
import { MantineProvider } from '@mantine/core';
import { NavigationProgress } from '@mantine/nprogress';
function Demo() {
return (
<MantineProvider>
<NavigationProgress />
</MantineProvider>
);
}