@types/react-loading-overlay
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Installation

npm install --save @types/react-loading-overlay

Summary

This package contains type definitions for react-loading-overlay (https://github.com/derrickpelletier/react-loading-overlay).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-loading-overlay.

index.d.ts

import * as React from "react";
export interface LoadingOverlayProps {
    /** default: ``true`` - whether the loader is visible. */
    active?: boolean;

    /** default: ``500`` - the transition speed for fading out the overlay. */
    fadeSpeed?: number;

    /** default: ``undefined`` - click handler for the overlay when active. */
    onClick?: React.MouseEventHandler<HTMLDivElement>;

    /**
     * default: ``undefined`` - the className for the wrapping ``<div />`` that
     *  is present whether active or not.
     */
    className?: string;

    /**
     * default: ``_loading_overlay_`` - the prefix for all classNames on the
     * generated elements. see Styling for more info.
     */
    classNamePrefix?: string;

    /**
     * default: ``false`` - renders the default spinner when true (and when the
     * loader is active). Otherwise you can provide any valid react node to use
     * your own spinner.
     */
    spinner?: boolean | React.ReactNode;

    /**
     * default: ``undefined`` - the text or react node to render in the loader overlay when active.
     */
    text?: React.ReactNode;

    /**
     * default: ``undefined`` - see Styling for more info.
     */
    styles?: {
        content?: (base: React.CSSProperties) => React.CSSProperties;
        overlay?: (base: React.CSSProperties) => React.CSSProperties;
        spinner?: (base: React.CSSProperties) => React.CSSProperties;
        wrapper?: (base: React.CSSProperties) => React.CSSProperties;
    };
}

declare class LoadingOverlay extends React.Component<LoadingOverlayProps> {}
export default LoadingOverlay;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/react

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-loading-overlay

Weekly Downloads

3,675

Version

1.0.4

License

MIT

Unpacked Size

5.76 kB

Total Files

5

Last publish

Collaborators

  • types