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.
48 lines (45 loc) • 1.74 kB
TypeScript
import { FunctionComponent, CSSProperties } from 'react';
/**
* Props for the LineWave loader component.
*
* The LineWave loader displays animated lines creating a wave effect.
*
* @interface LineWaveProps
*/
interface LineWaveProps {
/** 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. */
color?: string;
/** Color of the first line in the wave. Overrides default color. */
firstLineColor?: string;
/** Color of the middle line in the wave. Overrides default color. */
middleLineColor?: string;
/** Color of the last line in the wave. Overrides default color. */
lastLineColor?: 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;
/**
* Provide multiple colors to render a gradient instead of a solid color.
* When 2 or more colors are supplied a gradient will be applied to the loader.
*/
colors?: string[];
/** Type of gradient (linear or radial). Defaults to linear. */
gradientType?: 'linear' | 'radial';
/** Angle (in degrees) applied via rotate() transform for linear gradients. */
gradientAngle?: number;
}
/**
* @description contains three lines in a wave motion
* line colors are changeable
*/
declare const LineWave: FunctionComponent<LineWaveProps>;
export { LineWave };