UNPKG

react-loader-spinner

Version:

react-spinner-loader provides simple React.js spinner component which can be implemented for async wait operation before data load to the view.

35 lines (32 loc) 1.24 kB
import { FunctionComponent, CSSProperties } from 'react'; /** * Props for the RotatingLines loader component. * * The RotatingLines loader displays rotating lines in a circular pattern. * * @interface RotatingLinesProps */ interface RotatingLinesProps { /** Height of the SVG (number interpreted as px). */ height?: string | number; /** Width of the SVG (number interpreted as px). */ width?: string | number; /** Primary color applied to the loader. Defaults to DEFAULT_COLOR. */ color?: string; /** Accessible label announced to screen readers. */ ariaLabel?: string; /** Inline style object applied to the wrapper element. */ wrapperStyle?: CSSProperties; /** CSS class applied to the wrapper for custom styling. */ wrapperClass?: string; /** When false, the loader is not rendered. Defaults to true. */ visible?: boolean; /** Stroke width of the rotating lines. */ strokeWidth?: string | number; /** Duration of the rotation animation in seconds. */ animationDuration?: string | number; /** Color of the stroke for the lines. */ strokeColor?: string; } declare const RotatingLines: FunctionComponent<RotatingLinesProps>; export { RotatingLines };