@tenbox-dev/sura-ui-loading-button
v1.0.0
Published
> Wrap loading with antd button.
Downloads
2
Readme
@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
| 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 "@tenbox-dev/sura-ui-loading-button";
const TestPage = () => {
return (
<Fragment>
<SuraLoadingButton
component={Button}
onClick={() => {
deepRefresh();
refresh();
}}
/>
</Fragment>
);
};
export default TestPage;