@asurraa/sura-ui-loading-button
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

@asurraa/sura-ui-loading-button

Wrap loading with antd button.

Use case

  • wrap loading with antd button.

Installation

npm package

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 ``
import { SuraLoadingButton } from "@asurraa/sura-ui-loading-button";

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

export default TestPage;

Dependency

Readme

Keywords

none

Package Sidebar

Install

npm i @asurraa/sura-ui-loading-button

Weekly Downloads

3

Version

1.0.9

License

none

Unpacked Size

7.2 kB

Total Files

9

Last publish

Collaborators

  • vichea
  • themkimhong
  • lyhourchhen
  • duongkimseng