Back to Templates

Mantine Next.js + Nextra template
This is a template for Next.js app router + Mantine + Nextra documentation site.
Features
This template comes with the following features:
- PostCSS with mantine-postcss-preset
- TypeScript
- Storybook
- Jest setup with React Testing Library
- ESLint setup with eslint-config-mantine
- Provides API example in /api/version
Nextra Features
- Nextra documentation site with Mantine theme
- Sync Dark mode between documentation and application (Mantine/Nextra)
- Customizable components in componentsfolder
- Provides new Navigation and Footer components for Nextra documentation site
Folder structure
- components– shared components- you can use them in both documentation and application
- you may customize them to fit your needs
 
- content– Nextra documentation site (.mdx and _meta.json files)
npm scripts
Build and dev scripts
- dev– start dev server
- build– bundle application for production
- analyze– analyzes application bundle with @next/bundle-analyzer
Testing scripts
- typecheck– checks TypeScript types
- lint– runs ESLint
- prettier:check– checks files with Prettier
- jest– runs jest tests
- jest:watch– starts jest watch
- test– runs- jest,- prettier:check,- lintand- typecheckscripts
Other scripts
- storybook– starts storybook dev server
- storybook:build– build production storybook bundle to- storybook-static
- prettier:write– formats all files with Prettier
