Skip to content
/ ui Public

A collection of reusable components for React, styled with Tailwind CSS. It simplifies the development of modern and responsive interfaces.

License

Notifications You must be signed in to change notification settings

halvaradop/ui

Repository files navigation

@halvaradop/ui

This is a library of accessible, reusable, and customizable UI components for web applications built with React and styled using TailwindCSS. It provides a set of pre-styled components designed to streamline and accelerate the development of user interfaces.

Version Compatibility

This library supports both React 18 and React 19. Refer to the table below to select the appropriate version of the library based on your React version:

React version Library version
React 18 Latest version ^x.y.z
React 19 Beta version ^x.y.x-beta.n

Installation

To install the available components, you can refer to the packages and add the package name with the @halvaradop prefix. Then, run one of the following commands based on your package manager and the React version you are using:

For React 18

Install the stable version:

npm install @halvaradop/ui-component
yarn add @halvaradop/ui-component
pnpm add @halvaradop/ui-component

For React 19

Install the beta version:

npm install @halvaradop/ui-component@beta
yarn add @halvaradop/ui-component@beta
pnpm add @halvaradop/ui-component@beta

Usage

Import components and start building your application:

import { Button } from "@halvaradop/ui-button"

export default function App() {
  return <Button variant="outline">Click Me</Button>
}

Check the full list of components in the packages directory.

Styles

To add styles from the library to any of the components in your project, you need to add the pattern "./node_modules/@halvaradop/ui-*/**/*.{js,ts,jsx,tsx,mdx}" within the tailwind.config.ts file. This will allow TailwindCSS to recognize the classes used in the library and apply the styles to the components.

import type { Config } from "tailwindcss"

const config: Config = {
  content: ["./node_modules/@halvaradop/ui-*/**/*.{js,ts,jsx,tsx,mdx}"],
}

export default config

Notes

The beta version works, however, it may have minor changes or issues compared to the stable version. If you find a problem or issue, please report it in an Issue with the details.

Contributing

Welcome to contribute to @halvaradop/ui library if you have an idea, find an issue or you have an amazing advices, please feel free to open an issue or create a pull request. We offer a guide on how to contribute to the project and the necessary steps to do so. Here's how you can contribute, Read our Contribuing Guideline.

Code Of Conduct

Please be aware that this project has a code of conduct, and we expect all contributors to follow these guidelines in their interactions. For more information, please read our Code of Conduct.

About

A collection of reusable components for React, styled with Tailwind CSS. It simplifies the development of modern and responsive interfaces.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages