Setup
How to install and set up RC UI components in your project
Prerequisites
Before installing RC UI, make sure you have the following prerequisites:
- Node.js, version 18 or later
- A React project, version 18 or later
- shadcn/ui installed in your project
RC UI currently only supports the CSS Variables version of shadcn/ui
Installation
You can install RC UI components using either the rcui or shadcn CLI e.g.
This will install the component into your project at @/components/rcui/{package} (or the relevant folder you specified in the components.json file).
Usage
After installing a RC UI component, you can start using it in your React application.
Base styles
- if you are not using
shadcn/uiin your project, you can use the following CSS variables to style your components