A modern React component library for building consistent, composable UIs. Built with Tailwind CSS and designed for rapid development.
- β¨ Beautiful and accessible components
- βοΈ Easy customization via Tailwind
- π§© Composable and reusable hooks, services, and stores
- π Documentation & Storybook integration
npm install compositly
or
yarn add compositly
import 'compositly/public/output.css' // Tailwind styles
import {
// components
ComponentBase,
// helpers
// hooks
// services
// stores
} from 'compositly'
export default function App() {
return <ComponentBase id='hello-world' />
}
π For our website, viti compositly.com π For full documentation, visit docs.compositly.com
npm install
npm run dev
npm run ci
or
yarn ci
public/output.css
after changes. Tailwind can generate many unused classes.
Script | Description |
---|---|
dev |
Starts the development server |
css |
Builds the CSS |
css:dev |
Builds CSS in watch/dev mode |
test |
Runs tests with coverage |
lint |
Runs ESLint |
lint:fix |
Fixes lint errors |
format |
Formats code using Prettier |
build |
Builds for production |
preview |
Previews the production build locally |
ci |
Runs tests, lint, and formatting |
stories |
Starts the Storybook server |
stories:build |
Builds the Storybook site |
docs |
Starts the documentation server |
docs:build |
Builds the documentation for production |
clean |
Cleans dist , node_modules , package-lock.json , etc. |
- Components β Prebuilt UI elements (e.g.
Button
,Modal
,Card
) - Hooks β Custom hooks for common logic
- Services β API or utility functions
- Stores β Zustand-based global stores
- Helpers β Pure utility functions
We welcome contributions! Please read our contributing guide and follow the code style defined in .eslintrc
.
Coverage is generated in .coverage/index.html
, and you can view it in your browser. To generate coverage, run:
yarn test
This is an example of the coverage report:
If you find Compositly helpful and want to support its development, you can make a donation β every bit helps us build faster and better!
π Donate here: https://compositly.com/donate
You can donate using crypto or traditional payment platforms. Thank you for your support! π
For questions, feedback, or business inquiries:
βοΈ Email: netzuleando@gmail.com
π Website: https://compositly.com
Made with β€οΈ by the Compositly Team