1.0.9 • Published 2 years ago

@asurraa/sura-ui-loading-button v1.0.9

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@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

PropsDescriptionTypeExample
loadingTimingloading timingnumber
onClickonClick Event like other componentscb onClick
loadingSyncPropsprops of loading icon propsiconProps
componentButton or Fragmentgeneric component props
componentPropsgeneric propsgeneric 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

1.0.9

2 years ago

1.0.7

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago