GithubHelp home page GithubHelp logo

chipmunk25 / adusei-ui Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 863 KB

Adusei UI is a collection of reusable React components designed to help you build modern and accessible user interfaces with ease.

License: MIT License

JavaScript 1.20% HTML 0.21% TypeScript 93.53% CSS 5.06%

adusei-ui's Introduction

Here's the README in markdown format:

# Adusei UI React Library

Adusei UI is a collection of reusable React components wrapped around shadcn, designed to help you build modern and accessible user interfaces with ease.

# Table of Contents

- [Installation](#installation)
- [Usage](#usage)
- [Components](#components)
  - [Button](#button)
  - [Input](#input)
  - [Other Components](#other-components)
- [Contributing](#contributing)
- [License](#license)

# Installation

To install the Adusei UI library, use npm or yarn:

```bash
npm install adusei-ui
```

or

yarn add adusei-ui

Usage

To start using the components, import them into your React application:

import React from "react";
import { Button } from "adusei-ui";

const App = () => {
  return (
    <div>
      <Button>Click Me</Button>
    </div>
  );
};

export default App;

Components

Button

The Button component is a customizable button element.

Props:

  • children (node): The content to be displayed inside the button.
  • onClick (function): Function to be called when the button is clicked.
  • disabled (boolean): Disables the button when set to true.
  • variant (string): The style variant of the button ('default', 'secondary', etc.).

Example:

<Button onClick={() => alert("Button clicked!")} variant="default">
  Click Me
</Button>

Input

The Input component is a customizable input field.

Props:

  • value (string): The value of the input field.
  • onChange (function): Function to be called when the input value changes.
  • placeholder (string): Placeholder text for the input field.
  • type (string): The type of the input field ('text', 'password', etc.).

Example:

<Input
  value={value}
  onChange={(e) => setValue(e.target.value)}
  placeholder="Enter text"
  type="text"
/>

Other Components

The library includes many other components such as Checkbox, Modal, Tooltip, and more. Check the documentation for a complete list of components and their usage.

Contributing

We welcome contributions to the Adusei UI library! To contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes.
  4. Submit a pull request.

Please make sure to follow our contribution guidelines.

License

This project is licensed under the MIT License. See the LICENSE file for more information.



adusei-ui's People

Contributors

chipmunk25 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.