Skip to main content

Spinner

SPinners​

const Loadings = () => {
return (
<>
<Heading txp="center">Loading spinners</Heading>
<Layout style={{ flexDirection: "row", flexWrap: "wrap" }}>
<Spinner size={Theme.sizes.full} color={Theme.activeColors.danger} />
<Spinner size={Theme.sizes.xxl} color={Theme.activeColors.dark} />
<Spinner size={Theme.sizes.xl} color={Theme.activeColors.info} />
<Spinner size={Theme.sizes.lg} color={Theme.activeColors.primary} />
<Spinner size={Theme.sizes.md} color={Theme.activeColors.secondary} />
<Spinner size={Theme.sizes.sm} color={Theme.activeColors.danger} />
</Layout>
</>
);
};

export default Loadings;

Api References for SPinners

ParameterTypeDescription
size numberspinner size
colorstringspinner color
AnimatingbooleanWhether to show the indicator (true) or hide it (false).
hidesWhenStoppedbooleanWhether the indicator should hide when not animating.
styleanyyour custom styles