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.

31 lines (28 loc) 1.16 kB
import { FunctionComponent, CSSProperties } from 'react'; /** * Props for the Bars loader component. * * The Bars loader displays five animated vertical bars that move up and down * in a wave-like pattern, creating a loading animation similar to audio equalizer bars. * Each bar has a different animation timing to create a dynamic visual effect. * * @interface BarsProps */ interface BarsProps { /** Height of the SVG (number interpreted as px). Defaults to 80. */ height?: string | number; /** Width of the SVG (number interpreted as px). Defaults to 80. */ width?: string | number; /** Primary color applied to the bars. Defaults to DEFAULT_COLOR. */ color?: string; /** Accessible label announced to screen readers. Defaults to 'bars-loading'. */ 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; } declare const Bars: FunctionComponent<BarsProps>; export { Bars };