AstrixUI is a set of ready-to-go React components and hooks to minimize your effort building UI applications.
- Available for React v18
- Styled using Tailwindcss
- ESM support
- TypeScript support
npm i astrixui
This library uses TailwindCSS to style its components, so you need to use Tailwind in your project and make some changes inside the tailwind.config.js
file.
//...
plugins: [require('astrixui/plugin')]
//...
//...
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
'./node_modules/astrixui/**/*.{js,jsx,ts,tsx,mdx}',
],
//...
@import '~astrixui/index.css'
import { Card, CardContent, CardFooter, CardTitle } from 'astrixui';
1. I'm getting an error on compilation when I import some components from the library
Some components may fail on compiling due to the nature of server components and how react handles them, so you might need to use the use client
directive at the top of a file, above your imports.
Create a PR with your changes, please provide enough information and how to reproduce your changes. A well-written RFC will be much appreciated.
Made with ❤️ by Ricardo Riveros