Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/officialrajdeepsingh/material-next-app-router-ts
Material nextjs app router example with typescript
https://github.com/officialrajdeepsingh/material-next-app-router-ts
app-router-nextjs material-ui mui nextjs nextjs-app-router
Last synced: 16 days ago
JSON representation
Material nextjs app router example with typescript
- Host: GitHub
- URL: https://github.com/officialrajdeepsingh/material-next-app-router-ts
- Owner: officialrajdeepsingh
- Created: 2023-08-03T13:02:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-11T17:20:54.000Z (over 1 year ago)
- Last Synced: 2024-11-01T19:25:20.218Z (2 months ago)
- Topics: app-router-nextjs, material-ui, mui, nextjs, nextjs-app-router
- Language: TypeScript
- Homepage: https://officialrajdeepsingh.github.io/material-next-app-router-ts/
- Size: 194 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to install material UI in the Next.js with the app router?
## Details guide on installing MUI with Next.js app router and how to toggle theme light to dark with MUI and Next.js app router.
Understand the installation process of MUI in the nextjs app router, [then check out my article](https://medium.com/frontendweb/how-to-install-material-ui-in-the-next-js-with-the-app-router-10d2a60e41f2).## installation
### Clone the project
```bash
git clone https://github.com/officialrajdeepsingh/material-next-app-router-ts.git
```
### Change the folder
```bash
cd material-next-app-router-ts
```### Install the node package
```bash
npm install
# or
pnpm install
# or
yarn install
```First, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can edit the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
## Note
remove the following code when you start your development server.
```
// next.config.js/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
images: {
unoptimized: true,
};module.exports = nextConfig;
```