@antadesign/anta
    Preparing search index...

    Interface LoaderPropsUnreviewed

    Common props for JSX component wrappers.

    interface LoaderProps {
        tone?: LoaderTone;
        value?: number | false;
        max?: number;
        size?: number;
        speed?: number;
        label?: string;
        className?: string;
        style?: CSSProperties;
        children?: ReactNode;
        id?: string;
        title?: string;
        slot?: string;
        tabIndex?: number;
        key?: string | number | null;
        [key: `data-${string}`]: unknown;
        [key: `aria-${string}`]: unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: `data-${string}`]: unknown

      Any data-* attribute is forwarded to the rendered element.

    • [key: `aria-${string}`]: unknown

      Any aria-* attribute is forwarded to the rendered element.

    Index
    tone?: LoaderTone

    Color tone for the loader. Omit it to use the standard text-3 color.

    value?: number | false

    Current progress value. Omit this prop, or pass false, for an indeterminate rotating gradient.

    max?: number

    Upper bound of the range.

    100
    
    size?: number

    Width and height in pixels.

    16
    
    speed?: number

    Seconds per rotation. Pass a positive number.

    0.75
    
    label?: string

    Accessible name for a standalone loader. Without a label, the loader is decorative so nearby status text remains the single announcement.

    className?: string

    CSS class on the component's root element (merged with the component's own classes). Use it directly for layout and positioning — grid/flex placement, margins, alignment — rather than wrapping the component in a <div>/<span>.

    style?: CSSProperties

    Inline styles on the component's root element. Set layout/positioning here (or via className) directly on the component instead of adding a wrapper.

    children?: ReactNode

    Child elements. When provided, replaces the component's default label/content.

    id?: string

    HTML id attribute.

    title?: string

    HTML title attribute — native browser tooltip on hover.

    slot?: string

    Assigns the element to a named <slot> of a parent web component (e.g. slot="header" inside a <Card>, slot="footer" inside a <Dialog>).

    tabIndex?: number

    Tab order. Set to -1 to skip the element when tabbing.

    key?: string | number | null

    React/Preact reconciliation key when rendered inside a list. Consumed by the JSX runtime (not forwarded as a DOM attribute).