UNPKG

@apptane/react-ui-spinner

Version:
45 lines (44 loc) 1.63 kB
import { Color, ColorMode, MarginProps } from "@apptane/react-ui-core"; import { SpinnerAppearance } from "@apptane/react-ui-theme"; import PropTypes from "prop-types"; export interface SpinnerProps extends MarginProps { /** * Visual appearance. Defaults to `clip`. */ appearance?: SpinnerAppearance; /** * Overrides the color mode. * Default is to use globally set theme color mode or fallback to `light`. */ colorMode?: ColorMode; /** * Size of the spinner. Defaults to 16px. */ size?: number; /** * Color of the spinner. Defaults to `accent`. * Supports palette semantic text colors. */ color?: Color; /** * Indicates whether it must be rendered as an inline element. */ inline?: boolean; } export declare const SpinnerPropTypes: { appearance: PropTypes.Requireable<SpinnerAppearance>; colorMode: PropTypes.Requireable<ColorMode>; size: PropTypes.Requireable<number>; color: PropTypes.Requireable<string>; inline: PropTypes.Requireable<boolean>; margin: PropTypes.Requireable<string | number>; marginTop: PropTypes.Requireable<string | number>; marginRight: PropTypes.Requireable<string | number>; marginBottom: PropTypes.Requireable<string | number>; marginLeft: PropTypes.Requireable<string | number>; m: PropTypes.Requireable<string | number>; mt: PropTypes.Requireable<string | number>; mr: PropTypes.Requireable<string | number>; mb: PropTypes.Requireable<string | number>; ml: PropTypes.Requireable<string | number>; };