@primer/react
Version:
An implementation of GitHub's Primer Design System using React
25 lines • 1.03 kB
TypeScript
import type React from 'react';
import type { HTMLDataAttributes } from '../internal/internal-types';
declare const sizeMap: {
small: string;
medium: string;
large: string;
};
export type SpinnerProps = {
/** Sets the width and height of the spinner. */
size?: keyof typeof sizeMap;
/** Sets the text conveyed by assistive technologies such as screen readers. Set to `null` if the loading state is displayed in a text node somewhere else on the page. */
srText?: string | null;
/** @deprecated Use `srText` instead. */
'aria-label'?: string;
className?: string;
style?: React.CSSProperties;
/** Whether to delay the spinner before rendering by the defined 1000ms. */
delay?: boolean;
} & HTMLDataAttributes;
declare function Spinner({ size: sizeKey, srText, 'aria-label': ariaLabel, className, style, delay, ...props }: SpinnerProps): React.JSX.Element | null;
declare namespace Spinner {
var displayName: string;
}
export default Spinner;
//# sourceMappingURL=Spinner.d.ts.map