Note The libraries are still under construction
Welcome to my React UI Component Library, a collection of reusable React components styled with TailwindCSS and showcased with Storybook. This library aims to provide easily integrable UI elements for your projects.
This library includes the following components:
- Button: Customizable buttons for user interactions.
- Light: A component to toggle light/dark themes.
- StarRating: Allows users to rate items using a star system.
- Typography: Provides styled typographic elements.
- Fetcher: A headless component that uses render props to fetch data from an API
- DualMultiselect: A component for moving data between two options
- Code: A component for displaying code blocks
Ensure you have the following installed:
- Node.js (v12.0 or higher recommended)
- npm (v6.0 or higher)
To use the components in your project, add the library to your project by running:
npm install ui-library
Here's how to use the components in your react project
import { Button, Light, StarRating, Typography } from "ui-library";
function App() {
return (
<div>
<Typography as="h1">Welcome to My Library</Typography>
<Button onClick={() => console.log("Clicked!")}>Click Me!</Button>
<StarRating rating={4} onSetRating={(rating) => console.log(rating)} />
<Light />
</div>
);
}
To view and interact with the components locally via Storybook, clone the repository and run:
npm install
npm run storybook