Spinner

Exports

Import these components from @mbsw/ui.

Spinner

Props

The tables list common props for each component. See the full types for supported prop combinations and inherited HTML and Radix props.

Spinner

Spinner props
PropTypeRequirement
size'sm' | 'md' | 'lg' | 'xl' | '2xl'Optional

Type reference

Show full types

Full TypeScript definitions, including prop combinations and inherited props.

import { type ComponentPropsWithoutRef } from 'react';

type DataAttributes = {
    [key: `data-${string}`]: boolean | number | string | undefined;
};

type SvgProps = ComponentPropsWithoutRef<'svg'> & DataAttributes;

export type SpinnerSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';

export type SpinnerProps = Omit<SvgProps, 'aria-hidden' | 'children' | 'color' | 'dangerouslySetInnerHTML' | 'fill' | 'focusable' | 'height' | 'role' | 'stroke' | 'strokeWidth' | 'viewBox' | 'width'> & {
    size?: SpinnerSize;
};

export declare const Spinner: import("react").ForwardRefExoticComponent<Omit<SvgProps, "role" | "fill" | "color" | "aria-hidden" | "children" | "dangerouslySetInnerHTML" | "height" | "width" | "focusable" | "stroke" | "strokeWidth" | "viewBox"> & {
    size?: SpinnerSize;
} & import("react").RefAttributes<SVGSVGElement>>;