1.0.9 • Published 4 years ago
@asurraa/sura-ui-loading-button v1.0.9
@asurraa/sura-ui-loading-button
Wrap loading with antd button.
Use case
- wrap loading with antd button.
Installation
yarn add @asurraa/sura-ui-loading-buttonComponents 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;