This project and all components are written in TypeScript. We recommend using TypeScript for your project as well.
Create project
Prerequisites
These are the main dependencies you will need to get started.
Edit tsconfig.json file
Add the following code to the tsconfig.json
file to resolve paths:
Run the CLI
Run the nyxbui
init command to setup your project:
You will be asked a few questions to configure nyxbui.json
:
That's it
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: