- accordion
- alert dialog
- annonce
- aspect ratio
- avatar
- badge
- banner
- button
- calendar
- card
- checkbox
- context menu
- date picker
- dialog
- drawer
- dropdown menu
- empty state
- hover card
- input
- label
- popover
- progress
- radio group
- scroll area
- select
- separator
- slider
- switch
- tabs
- textarea
- toast
- toggle group
- toggle
- toolbar
- tooltip
Astro Guide
Install and Configure Tailus UI React with Astro
1. Create a new Astro project
First, create a new Astro project by running the following command:
2. Add React and Tailwind CSS
Next, add React and Tailwind CSS to your project by running the following command:
3. Install Tailus UI Themer
Next, install Tailus UI Themer by running the following command:
4. Update your Tailwind CSS configuration
Add the components path to your content array
5. Add cloneElement utility
Create a file called utils.ts
in your /lib
directory and copy-paste the following code
Note
The cloneElement()
is used to clone a React element and add Tailwind CSS utilities to the cloned element. It’s useful for the <Icon />
part of some components
6. Add paths
Add paths to your tsconfig.json
file to make the import of the components easier.
What’s next?
Great job! You’ve successfully installed Tailus UI React in your project. Next, let’s learn how to configure your theme.