❤️ Support our project - Your donation helps us continue developing awesome tools!


Docs
Next.js

Next.js

Install and configure Next.js.

Create project

Run the init command to create a new Next.js project or to setup an existing one:

npx nyxb@latest init

Configure components.json

You will be asked a few questions to configure components.json:

Which style would you like to use? › Miami
Which color would you like to use as base color? › Zinc
Do you want to use CSS variables for colors? › no / yes

That's it

You can now start adding components to your project.

npx nyxb@latest add button

The command above will add the Button component to your project. You can then import it like this:

import { Button } from "~/components/ui/button"
 
export default function Home() {
  return (
    <div>
      <Button>Click me</Button>
    </div>
  )
}