Next.js
A quick guide to set up MYDS in a Next.js app.
Steps to install
Create a Next.js project
You will be prompted with a series of questions. Select the following options:
After the project is created, head to the project root:
Configure CSS stylesheet
You may configure the styling through one of (2) methods listed below.
1. CSS import
2. Tailwind CSS
Please read the Style Configuration for more advanced configuration.
Start using the components!
Here is a <Button />
for you to get started!
Important
MYDS components are built for the client-side, while Next.js App router is server rendered by default.
To tell Next.js to render the component client side, you
must include the use client
directive in the component file. For Next.js Page router, you may omit the directive.