UNPKG

@payfit/unity-components

Version:

18 lines (17 loc) 1.04 kB
import { HTMLAttributes } from 'react'; export type SpinnerProps = Pick<HTMLAttributes<HTMLDivElement>, 'aria-hidden' | 'role'> & { /** The label text for the spinner */ label: string; /** The size of the spinner, can be 'small' for 16px size or 'medium' for 24px size */ size: 'small' | 'medium'; /** Te spinner's color, can be 'primary', 'inverted', or 'inherit', which will make it take the element's `currentColor` */ color?: 'primary' | 'inverted' | 'inherit'; }; export declare const Spinner: import('react').ForwardRefExoticComponent<Pick<HTMLAttributes<HTMLDivElement>, "role" | "aria-hidden"> & { /** The label text for the spinner */ label: string; /** The size of the spinner, can be 'small' for 16px size or 'medium' for 24px size */ size: "small" | "medium"; /** Te spinner's color, can be 'primary', 'inverted', or 'inherit', which will make it take the element's `currentColor` */ color?: "primary" | "inverted" | "inherit"; } & import('react').RefAttributes<HTMLDivElement>>;