1.1.31 • Published 8 months ago

hasodi-lib v1.1.31

Weekly downloads
-
License
MIT
Repository
github
Last release
8 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

8 months ago

1.1.30

8 months ago

1.1.29

8 months ago

1.1.28

8 months ago

1.1.27

8 months ago

1.1.26

8 months ago

1.1.25

9 months ago

1.1.24

9 months ago

1.1.23

9 months ago

1.1.22

9 months ago

1.1.21

9 months ago

1.1.20

9 months ago

1.1.19

9 months ago

1.1.18

9 months ago

1.1.17

9 months ago

1.1.16

10 months ago

1.1.15

10 months ago

1.1.14

10 months ago

1.1.13

10 months ago

1.1.12

10 months ago

1.1.11

10 months ago

1.1.10

10 months ago

1.1.9

10 months ago

1.1.8

10 months ago

1.1.7

11 months ago

1.1.4

11 months ago

1.1.3

11 months ago

1.1.2

11 months ago

1.1.1

11 months ago

1.0.14

11 months ago

1.0.13

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

12 months ago

1.0.0

12 months ago