open-index/open-npm huggingface dataset:
npm package: @morui/use-infinite-scroll
Description: A hook for handling infinite scroll based on the IntersectionObserver API
Author: Danny
Latest version: 2.1.0

# @morui/use-infinite-scroll

A Quick description of the component

> This is an internal utility, not intended for public usage.

## Installation

```sh
yarn add @morui/use-infinite-scroll
# or
npm i @morui/use-infinite-scroll
```

## Contribution

Yes please! See the
[contributing guidelines](https://github.com/dannyfi/morui/blob/master/CONTRIBUTING.md)
for details.

## Licence

This project is licensed under the terms of the
[MIT license](https://github.com/dannyfi/morui/blob/master/LICENSE).
npm package: @morui/use-is-mobile
Description: A hook that returns whether the device is mobile or not
Author: Danny
Latest version: 2.1.0

# @morui/use-is-mobile

A Quick description of the component

> This is an internal utility, not intended for public usage.

## Installation

```sh
yarn add @morui/use-is-mobile
# or
npm i @morui/use-is-mobile
```

## Contribution

Yes please! See the
[contributing guidelines](https://github.com/dannyfi/morui/blob/master/CONTRIBUTING.md)
for details.

## Licence

This project is licensed under the terms of the
[MIT license](https://github.com/dannyfi/morui/blob/master/LICENSE).
npm package: @morui/use-is-mounted
Description: This hook can be used to render client-based components or run client logic
Author: Danny
Latest version: 2.1.0

# @morui/use-is-mounted

A Quick description of the component

> This is an internal utility, not intended for public usage.

## Installation

```sh
yarn add @morui/use-is-mounted
# or
npm i @morui/use-is-mounted
```

## Contribution

Yes please! See the
[contributing guidelines](https://github.com/dannyfi/morui/blob/master/CONTRIBUTING.md)
for details.

## Licence

This project is licensed under the terms of the
[MIT license](https://github.com/dannyfi/morui/blob/master/LICENSE).
npm package: @morui/use-pagination
Description: State management hook for Pagination component, it lets you manage pagination with controlled and uncontrolled state
Author: Danny
Latest version: 2.1.0

# @morui/use-pagination

A Quick description of the component

> This is an internal utility, not intended for public usage.

## Installation

```sh
yarn add @morui/use-pagination
# or
npm i @morui/use-pagination
```

## Contribution

Yes please! See the
[contributing guidelines](https://github.com/dannyfi/morui/blob/master/CONTRIBUTING.md)
for details.

## Licence

This project is licensed under the terms of the
[MIT license](https://github.com/dannyfi/morui/blob/master/LICENSE).
npm package: @morui/use-real-shape
Description: Hook that returns the real dimensions of an element
Author: Danny
Latest version: 2.1.0

# @morui/use-real-shape

A Quick description of the component

> This is an internal utility, not intended for public usage.

## Installation

```sh
yarn add @morui/use-real-shape
# or
npm i @morui/use-real-shape
```

## Contribution

Yes please! See the
[contributing guidelines](https://github.com/dannyfi/morui/blob/master/CONTRIBUTING.md)
for details.

## Licence

This project is licensed under the terms of the
[MIT license](https://github.com/dannyfi/morui/blob/master/LICENSE).
npm package: @morui/use-ref-state
Description: Hook for saving the state in a ref value
Author: Danny
Latest version: 2.1.0

# @morui/use-ref-state

A Quick description of the component

> This is an internal utility, not intended for public usage.

## Installation

```sh
yarn add @morui/use-ref-state
# or
npm i @morui/use-ref-state
```

## Contribution

Yes please! See the
[contributing guidelines](https://github.com/dannyfi/morui/blob/master/CONTRIBUTING.md)
for details.

## Licence

This project is licensed under the terms of the
[MIT license](https://github.com/dannyfi/morui/blob/master/LICENSE).
npm package: @morui/use-resize
Description: Hook that adds an event listener to the resize window event
Author: Danny
Latest version: 2.1.0

# @morui/use-resize

A Quick description of the component

> This is an internal utility, not intended for public usage.

## Installation

```sh
yarn add @morui/use-resize
# or
npm i @morui/use-resize
```

## Contribution

Yes please! See the
[contributing guidelines](https://github.com/dannyfi/morui/blob/master/CONTRIBUTING.md)
for details.

## Licence

This project is licensed under the terms of the
[MIT license](https://github.com/dannyfi/morui/blob/master/LICENSE).
npm package: @morui/use-safe-layout-effect
Description: A Quick description of the component
Author: Danny
Latest version: 2.1.0

# @morui/use-safe-layout-effect

A Quick description of the component

> This is an internal utility, not intended for public usage.

## Installation

```sh
yarn add @morui/use-safe-layout-effect
# or
npm i @morui/use-safe-layout-effect
```

## Contribution

Yes please! See the
[contributing guidelines](https://github.com/dannyfi/morui/blob/master/CONTRIBUTING.md)
for details.

## Licence

This project is licensed under the terms of the
[MIT license](https://github.com/dannyfi/morui/blob/master/LICENSE).
npm package: @morui/use-scroll-position
Description: Provides the logic to control the scroll over an element
Author: Danny
Latest version: 2.1.0

# @morui/use-scroll-position

A Quick description of the component

> This is an internal utility, not intended for public usage.

## Installation

```sh
yarn add @morui/use-scroll-position
# or
npm i @morui/use-scroll-position
```

## Contribution

Yes please! See the
[contributing guidelines](https://github.com/dannyfi/morui/blob/master/CONTRIBUTING.md)
for details.

## Licence

This project is licensed under the terms of the
[MIT license](https://github.com/dannyfi/morui/blob/master/LICENSE).
npm package: @morui/use-ssr
Description: A Quick description of the component
Author: Danny
Latest version: 2.1.0

# @morui/use-ssr

A Quick description of the component

> This is an internal utility, not intended for public usage.

## Installation

```sh
yarn add @morui/use-ssr
# or
npm i @morui/use-ssr
```

## Contribution

Yes please! See the
[contributing guidelines](https://github.com/dannyfi/morui/blob/master/CONTRIBUTING.md)
for details.

## Licence

This project is licensed under the terms of the
[MIT license](https://github.com/dannyfi/morui/blob/master/LICENSE).
npm package: @morui/use-update-effect
Description: React effect hook that invokes only on update
Author: Danny
Latest version: 2.1.0

# @morui/use-update-effect

A Quick description of the component

> This is an internal utility, not intended for public usage.

## Installation

```sh
yarn add @morui/use-update-effect
# or
npm i @morui/use-update-effect
```

## Contribution

Yes please! See the
[contributing guidelines](https://github.com/dannyfi/morui/blob/master/CONTRIBUTING.md)
for details.

## Licence

This project is licensed under the terms of the
[MIT license](https://github.com/dannyfi/morui/blob/master/LICENSE).
npm package: @morui/user
Description: Flexible User Profile Component.
Author: Danny
Latest version: 2.1.0

# @morui/user

Display user information with avatar and name.

Please refer to the [documentation](/docs/components/user) for more information.

## Installation

```sh
yarn add @morui/user
# or
npm i @morui/user
```

## Contribution

Yes please! See the
[contributing guidelines](https://github.com/dannyfi/morui/blob/master/CONTRIBUTING.md)
for details.

## Licence

This project is licensed under the terms of the
[MIT license](https://github.com/dannyfi/morui/blob/master/LICENSE).
npm package: @moruwallet/moru-web-sdk
Description: Moru Payment Gateway
Author: Moru
Latest version: 1.0.2

# @moruwallet/moru-web-sdk

[![NPM](https://img.shields.io/npm/v/@moruwallet/moru-web-sdk.svg)](https://www.npmjs.com/package/@moruwallet/moru-web-sdk) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

Moru Payment Gateway web sdk <a href="https://moru-digital-wallet.github.io/moru-payment-gateway-docs/#/">Read Full Documentation</a>.

## Installation

```bash
yarn add @moruwallet/moru-web-sdk
npm install @moruwallet/moru-web-sdk
```

## Usage

```jsx
import { MoruCheckout } from '@moruwallet/moru-web-sdk';

function App() {
  const options = {
    access_key: 'test_9425294388834bdface7d1b58fd538bf67627d9408fe4f2589820cf550a5003d',
    transaction_id: '1',
    additional_fields: {
      name: 'Firstname Lastname',
      email: 'email@example.com',
    },
    callback_handler: {
      onSuccess: (response) => {
        console.log(response);
        // call your api
        alert('success');
      },
      onError: (error) => {
        console.log(error);
        alert('failure');
      },
      onClose: (error) => {
        console.log(error);
      },
    },
  };
  const checkout = new MoruCheckout(options);
  const handleMoruPayment = () => {
    checkout.open({ amount: 100 });
  };
  return (
    <div>
      <button onClick={handleMoruPayment}>Pay with Moru</button>
    </div>
  );
}

export default App;
```

## Demo

[Moru web sdk demo](https://sandbox.moru-payment-gateway.pnpl.com.np/sdk/test/payment.html)