Back to templates

Template details

Mantine Next Template

Mantine + Next.js app router template (7.0+)

About this template

Mantine Next Template is a GitHub boilerplate that scaffolds a Next.js application with the Mantine React component library pre-configured for the app router, giving developers a ready-to-customize starting point for new projects.

What is Mantine Next Template?

Mantine Next Template is a starter repository that combines Next.js, a React framework, and Mantine, a React component library. Its core function is to eliminate the manual setup normally required to use Mantine inside a Next.js app router project. The template takes a fresh GitHub repository and populates it with the configuration needed to render Mantine components, along with the standard Next.js app directory structure. It is documented in the official Mantine guide for Next.js at mantine.dev/guides/next/, which walks through the template's usage.

Key Features

  • One-click repository creation — GitHub's "Use this template" button lets you generate a new project from the template directly in the browser.
  • Mantine 7 support — The repository metadata specifies Mantine version 7.0 or higher, giving you access to the latest component APIs and hooks.
  • Next.js App Router — The template is built for Next.js's modern app router (the "app" directory) rather than the older pages router, aligning with current Next.js recommendations.
  • PostCSS styling pipeline — PostCSS is listed as a project technology in the metadata, so styles are processed through PostCSS as part of the build.
  • Official documentation link — A direct reference to the Mantine Next.js guide provides setup instructions and usage examples.

Who should use Mantine Next Template?

  • React developers starting a new app: You can create a project from this template and immediately begin writing components using Mantine's UI primitives like buttons, modals, and forms.
  • Next.js developers migrating to the app router: The template demonstrates a working file structure and configuration, serving as a base for converting existing pages-router projects.
  • Teams standardizing on Mantine: Since the template is linked from the official Mantine docs, it gives teams a consistent, officially supported starting point for internal projects.

What can you do with Mantine Next Template?

  • Spin up a new web application: After clicking "Use this template" and cloning the result, you can run the Next.js dev server and start building a user interface with Mantine components.
  • Learn the integration pattern: The accompanying documentation explains how Mantine hooks into Next.js's app router, including how to handle themes and client components.
  • Customize the scaffold: Because it's a minimal boilerplate, you can modify the layout, add routes under the app directory, and integrate other tools like state management or data fetching libraries.

How does Mantine Next Template work?

To use the template, click the "Use this template" button at the top of the GitHub page to create a new repository with the same files. Then clone that repository to your machine and run the development server as described in the Mantine Next.js documentation. The template already includes the necessary configuration for Mantine to work with the Next.js app router, so the first page loads with Mantine styles applied.

FAQ

How do I start a project with Mantine Next Template?

Click the green "Use this template" button at the top of the GitHub repository. This creates a new repository in your account containing the exact same files. Clone that repository to your local machine and follow the instructions in the Mantine Next.js documentation to install dependencies and run the development server.

What versions does this template support?

The repository metadata states Mantine 7.0 or higher. The template uses the Next.js app router, so it is intended for Next.js versions that support the app directory (Next.js 13 and later). No specific Next.js version is listed in the source, but the app router is the target.

Where is the documentation for this template?

The template's documentation is hosted on the official Mantine website at mantine.dev/guides/next/. That page covers installation, configuration, and how to use Mantine components within the Next.js app router.

screenshot of Mantine Next Template on template0.com