1.1.31 • Published 4 months ago

hasodi-lib v1.1.31

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Hasodi Lib

A lightweight and customizable React component library designed to accelerate your development process. With hasodi-lib, you can seamlessly integrate reusable UI components into your projects while maintaining flexibility and simplicity.

Features

  • 🚀 Reusable Components: Simplify your UI development with pre-built components.
  • 🎨 Customizable: Tailor components to match your design system or branding.
  • 🌟 Modern Tooling: Built using Vite for fast builds and optimized performance.
  • 🧩 Extendable: Exported hooks and utilities to enhance your component workflows.
  • 🔌 React-Friendly: Works with React 18+ and supports both CommonJS and ES Modules.

Installation

Install the library using your package manager:

# Using npm
npm install hasodi-lib

# Using yarn
yarn add hasodi-lib

# Using pnpm
pnpm add hasodi-lib

Usage

Import the components you need into your React project:

import { Button } from "hasodi-lib";

export default function App() {
  return <Button label="Click Me!" onClick={() => alert("Button Clicked")} />;
}

Available Components

  • Button: A customizable button with different styles and states.
  • Input: A responsive input field for forms.
  • Card: A container for displaying grouped content.

For detailed examples and props for each component, refer to the documentation.


Exported Hooks

Leverage hooks to add advanced functionality to your components:

import { useToggle } from "hasodi-lib";

export default function ToggleExample() {
  const [isToggled, toggle] = useToggle(false);

  return (
    <div>
      <p>The toggle is {isToggled ? "ON" : "OFF"}</p>
      <button onClick={toggle}>Toggle</button>
    </div>
  );
}

Contributing

We welcome contributions! If you find a bug or have an idea for a new feature, feel free to open an issue or submit a pull request.

Build the Library

To build the library for production:

npm run build

The built files will be output to the dist/ directory.


Scripts

  • npm run dev: Start the development server.
  • npm run build: Build the library for production.
  • npm run lint: Lint the codebase using ESLint.
  • npm run storybook: Launch the Storybook environment for component previews.
  • npm run build-storybook: Build the Storybook static files.

License

This project is licensed under the MIT License.


Connect with Us


Start building amazing UIs today with Hasodi Lib! 🎉

1.1.31

4 months ago

1.1.30

4 months ago

1.1.29

4 months ago

1.1.28

4 months ago

1.1.27

4 months ago

1.1.26

4 months ago

1.1.25

5 months ago

1.1.24

5 months ago

1.1.23

5 months ago

1.1.22

5 months ago

1.1.21

5 months ago

1.1.20

5 months ago

1.1.19

5 months ago

1.1.18

5 months ago

1.1.17

5 months ago

1.1.16

5 months ago

1.1.15

6 months ago

1.1.14

6 months ago

1.1.13

6 months ago

1.1.12

6 months ago

1.1.11

6 months ago

1.1.10

6 months ago

1.1.9

6 months ago

1.1.8

6 months ago

1.1.7

6 months ago

1.1.4

7 months ago

1.1.3

7 months ago

1.1.2

7 months ago

1.1.1

7 months ago

1.0.14

7 months ago

1.0.13

7 months ago

1.0.11

7 months ago

1.0.10

7 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago