This example sets up a simple ReactMD and Next.js app featuring:
- _variables.scss to override the default
react-md
theme and feature toggles - app.scss global styles that conditionally apply the dark theme based on the user's OS preferences
- a custom _app.jsx that uses a persistent layout
- a reusable Layout.jsx that:
- updates all the icons to use
SVGIcon
s instead ofFontIcon
s - initializes the
Layout
component fromreact-md
with navigation items
- updates all the icons to use
For more information about ReactMD's features, styling, components, and API, check out the main documentation. You can also view the documentation site's source code for a more complex example of using ReactMD + Next.js or the with-react-md-typescript example for Typescript support.
Deploy the example using Vercel:
Execute create-next-app
with npm or Yarn to bootstrap the example:
npx create-next-app --example with-react-md with-react-md-app
# or
yarn create next-app --example with-react-md with-react-md-app
Deploy it to the cloud with Vercel (Documentation).