Spinner
Simple spinner for loading indication
Example
import React, {FC} from "react";
import {ISizeSpinner, Spinner} from "@lad-tech/mobydick-core";
export const MySpinner: FC = () => {
return <Spinner size={ISizeSpinner.L} duration={1000} />
}
export const MyBlackSpinner: FC = () => {
return <Spinner fill={'#000000'}/>
}
export const DefaultSpinner: FC = () => {
return <Spinner />
}
Props
Svg Props
Inherits Svg Props.
size
Size of spinner
TYPE | DEFAULT |
---|---|
ISizeSpinner | ISizeSpinner.S |
duration
Duration of one spin in milliseconds
TYPE | DEFAULT |
---|---|
number | 2500 |