Skip to main content

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

Required
isLoading

TYPE
boolean

Show loading animation

duration

TYPEDEFAULT
number2500

Animation duration in ms

isError

TYPE
boolean

Show error

onCancel

TYPE
() => void

Callback to cancel animation