retro-react
Version:
A React component library for building retro-style websites
29 lines (28 loc) • 1.01 kB
TypeScript
/// <reference types="react" />
import { ThemeUICSSObject } from 'theme-ui';
export declare type SpinnerVariant = 'hourglass' | 'dots' | 'bars' | 'rotating';
export declare type SpinnerSize = 'small' | 'medium' | 'large';
export interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement> {
/**
* The variant of the spinner - authentic WIN31 loading styles.
*
* @default 'hourglass'
*/
variant?: SpinnerVariant;
/**
* The size of the spinner.
*
* @default 'medium'
*/
size?: SpinnerSize;
sx?: ThemeUICSSObject;
}
/**
* Authentic Windows 3.1 style spinner components for loading states.
* Features classic loading indicators reminiscent of early Windows applications.
*
* @example
* <Spinner variant="hourglass" size="medium" />
* <Spinner variant="dots" size="small" />
*/
export declare const Spinner: import("react").ForwardRefExoticComponent<SpinnerProps & import("react").RefAttributes<HTMLDivElement>>;