Install and configure Vite.
Run the init command to create a new Vite project:
You will be asked a few questions to configure components.json:
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:
Replace everything in src/index.css with following
The current version of Vite splits TypeScript configuration into three files, two of which need to be edited. Add the baseUrl and paths properties to the compilerOptions section of the tsconfig.json and tsconfig.app.json files:
Add the following code to the vite.config.ts so your app can resolve paths without error:
Run the radian init command to setup your project:
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: