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.18 kB
import { FunctionComponent, CSSProperties } from 'react'; /** * Props for the Blocks loader component. * * The Blocks loader displays a grid of animated square blocks that appear and disappear * in a wave-like pattern. The blocks fill in with color sequentially to create * a dynamic loading animation resembling falling tetris blocks. * * @interface BlocksProps */ interface BlocksProps { /** 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 blocks. Can be overridden by colors array. */ color?: string; /** Accessible label announced to screen readers. Defaults to 'blocks-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 Blocks: FunctionComponent<BlocksProps>; export { Blocks };