1.0.0 • Published 2 years ago
material-next-app-router-ts v1.0.0
Material UI - Next.js App Router example in TypeScript
Add ENV File
- API_BASE_URL=
This is a Next.js project bootstrapped using create-next-app with Material UI installed.
How to use
Download the example or clone the repo:
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/material-ui-nextjs-ts
cd material-ui-nextjs-tsInstall dependencies and run:
npm install
npm run devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying src/app/page.tsx. The page auto-updates as you edit the file.
This example uses next/font/google to automatically optimize and load Roboto, a custom Google Font.
Learn more
To learn more about this example:
- Next.js Documentation - learn about Next.js features and API.
- Customizing Material UI - approaches to customizing Material UI.
1.0.0
2 years ago