Learn how to setup and install @material-tailwind/react
with Next.js.
First, create a new Next.js project using the command below, it will create a new Next.js project with Tailwind CSS installed and configured.
For more details check the Next.js Official Documentation.
Once you have created your Next.js project, you need to install @material-tailwind/react
by running the following command:
Once you installed @material-tailwind/react
you need to add mtConfig
and the template path to your tailwind.config.ts
file.
Now you're ready to use Material Tailwind components in your Next.js project. Here's an example of how to use the Button
component: