UNPKG

907 BTypeScriptView Raw
1import * as React from 'react';
2export declare enum spinnerSize {
3 sm = "sm",
4 md = "md",
5 lg = "lg",
6 xl = "xl"
7}
8export interface SpinnerProps extends Omit<React.HTMLProps<HTMLSpanElement>, 'size'> {
9 /** Additional classes added to the Spinner. */
10 className?: string;
11 /** Size variant of progress. */
12 size?: 'sm' | 'md' | 'lg' | 'xl';
13 /** Text describing that current loading status or progress */
14 'aria-valuetext'?: string;
15 /** Whether to use an SVG (new) rather than a span (old) */
16 isSVG?: boolean;
17 /** Diameter of spinner set as CSS variable */
18 diameter?: string;
19 /** Accessible label to describe what is loading */
20 'aria-label'?: string;
21 /** Id of element which describes what is being loaded */
22 'aria-labelledBy'?: string;
23}
24export declare const Spinner: React.FunctionComponent<SpinnerProps>;
25//# sourceMappingURL=Spinner.d.ts.map
\No newline at end of file