1.0.0 • Published 1 year ago

@tenbox-dev/sura-ui-loading-button v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

@tenbox-dev/sura-ui-loading-button

Wrap loading with antd button.

Use case

  • wrap loading with antd button.

Installation

yarn add @tenbox-dev/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 "@tenbox-dev/sura-ui-loading-button";

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

export default TestPage;

Dependency

1.0.0

1 year ago