@asurraa/sura-ui-loading-button
v1.0.9
Published
Wrap loading with button
Downloads
11
Keywords
Readme
@asurraa/sura-ui-loading-button
Wrap loading with antd button.
Use case
- wrap loading with antd button.
Installation
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;