UNPKG

@stratakit/bricks

Version:

Small, modular components for StrataKit

32 lines (31 loc) 833 B
import type { BaseProps } from "@stratakit/foundations/secret-internals"; interface SpinnerProps extends BaseProps { /** * A text alternative for the spinner. * @default "Loading…" */ alt?: string; /** * The size of the spinner. * @default "medium" */ size?: "small" | "medium" | "large" | "xlarge"; /** * The tone of the spinner. * @default "neutral" */ tone?: "neutral" | "accent"; } /** * A loading spinner. * * Example: * ```tsx * <Spinner /> * ``` * * Supports a `tone` prop to change the tone (color) of the spinner. * Supports a `size` prop to change the size of the spinner. */ declare const Spinner: import("react").ForwardRefExoticComponent<SpinnerProps & import("react").RefAttributes<HTMLElement | HTMLDivElement>>; export default Spinner;