Next.js

Install and configure Modern UI for Next.js.

1
Getting Started with Next.js
Install Next.js using your preferred package manager.
2
Install Dependencies
Install dependencies using your preferred package manager.
3
Init Modern UI
Run the init command to create a new Next.js project or to setup an existing one:
Follow the steps on your terminal to complete
4
Add Components
You can now start adding components to your project.
The command above will add the Button component to your project. You can then import it like this:
JavaScript
1import { Button } from "@/components/modern-ui/button";
2            
3export function ButtonDemo() {
4    return <Button>Click me</Button>;
5}