PanelSpinner
Reusable PanelSpinner component
Example
import { PanelSpinner, View} from '@lad-tech/mobydick-core';
export const PanelSpinnerWidget = () => {
return (
<View>
<PanelSpinner isLoading={true} />
<PanelSpinner isLoading={false} />
<PanelSpinner isLoading={true} onCancel={() => {}} />
</View>
);
};
Props
RequiredisLoading
| TYPE |
|---|
| boolean |
Show loading animation
duration
| TYPE | DEFAULT |
|---|---|
| number | 2500 |
Animation duration in ms
isError
| TYPE |
|---|
| boolean |
Show error
onCancel
| TYPE |
|---|
| () => void |
Callback to cancel animation