@twmw/tw-components
v0.700.0
Published
A modern React component library designed for easy integration and customization. Currently includes the **Button** component, with many more components coming soon!
Downloads
1,994
Readme
@twmw/tw-components
A modern React component library designed for easy integration and customization. Currently includes the Button component, with many more components coming soon!
Features
- Lightweight and customizable: Use out-of-the-box or customize to fit your needs.
- Built with Storybook: Explore the components and their variations directly from the Storybook UI.
- Modern build: Optimized for React, with ES modules and UMD support.
- Responsive and accessible: Designed to work across devices and with accessibility in mind.
Table of Contents
Installation
To install the library, run the following command:
npm install @twmw/tw-components
You can also load de Storybook preview locally by running npm i && npm start
locally under this repository.
Usage
You need to import the Styles
css file that the library provides into your main css/scss file of your application like so:
@import "@twmw/tw-components/Styles";
Available Components
Button: A customizable button component with different styles and sizes.
FormGenerator: Component that generates dynamic forms using react-hook-form. It provides a declarative way to create forms with various field types, validation rules, and customizable submission handling.
Datatable: A React-based DataTable component that provides powerful data grid functionality including sorting, filtering, and pagination.
Modal: A flexible React Modal component that provides a customizable overlay dialog with support for different sizes, animations, and content management.