@buun_group/brutalist-ui
Version:
A brutalist-styled component library
21 lines (20 loc) • 862 B
TypeScript
/**
* @module Spinner
* @description A loading spinner component for indicating background activity or content loading. Customizable size and appearance.
*/
import { HTMLAttributes } from 'react';
export interface SpinnerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
/** Size of the spinner */
size?: 'sm' | 'md' | 'lg' | 'xl';
/** Color variant */
color?: 'default' | 'accent' | 'success' | 'warning' | 'error' | 'info';
/** Animation variant */
variant?: 'dots' | 'bars' | 'square' | 'glitch';
/** Speed of animation */
speed?: 'slow' | 'normal' | 'fast';
/** Label for accessibility */
label?: string;
/** Additional CSS classes */
className?: string;
}
export declare const Spinner: import("react").ForwardRefExoticComponent<SpinnerProps & import("react").RefAttributes<HTMLDivElement>>;