# @asurraa/sura-ui-loading-button

> Wrap loading with button

Latest version **1.0.9** (published 2022-05-09) · 0 weekly downloads

## Install

```sh
npm install @asurraa/sura-ui-loading-button
pnpm add @asurraa/sura-ui-loading-button
yarn add @asurraa/sura-ui-loading-button
bun add @asurraa/sura-ui-loading-button
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2022-05-09 |
| First published | 2021-07-31 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | @asurraa |
| Maintainers | vichea, themkimhong, lyhourchhen, duongkimseng |

## Links

- npm: https://www.npmjs.com/package/@asurraa/sura-ui-loading-button
- npm.io page: https://npm.io/package/@asurraa/sura-ui-loading-button

## Recent versions

- 1.0.9 (latest) — 2022-05-09
- 1.0.7 — 2021-08-15
- 1.0.4 — 2021-07-31
- 1.0.3 — 2021-07-31
- 1.0.2 — 2021-07-31
- 1.0.1 — 2021-07-31
- 1.0.0 — 2021-07-31

## README

# @asurraa/sura-ui-loading-button

> Wrap loading with antd button.

### Use case

- wrap loading with antd button.

### Installation

![npm package](https://img.shields.io/npm/v/@asurraa/sura-ui-loading-button?style=flat-square?style=flat-square)

```sh
yarn add @asurraa/sura-ui-loading-button
```

### Components Properties

| Props            | Description                         | Type                      | Example |
| ---------------- | ----------------------------------- | ------------------------- | ------- |
| loadingTiming    | loading timing                      | `number`                  | ``      |
| onClick          | onClick Event like other components | `cb onClick`              | ``      |
| loadingSyncProps | props of loading icon props         | `iconProps`               | ``      |
| component        | Button or Fragment                  | `generic component props` | ``      |
| componentProps   | generic props                       | `generic component props` | ``      |

```tsx
import { SuraLoadingButton } from "@asurraa/sura-ui-loading-button";

const TestPage = () => {
  return (
    <Fragment>
      <SuraLoadingButton
        component={Button}
        onClick={() => {
          deepRefresh();
          refresh();
        }}
      />
    </Fragment>
  );
};

export default TestPage;
```

### Dependency

- [antd-button](https://ant.design/components/button/)

---
_Source: https://npm.io/package/@asurraa/sura-ui-loading-button · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
