1.0.4 • Published 6 months ago

@types/react-loading-overlay v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for React-Loading-Overlay 1.0
// Project: https://github.com/derrickpelletier/react-loading-overlay
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 23 Dec 2021 23:35:37 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by DefinitelyTyped.

1.0.2

8 months ago

1.0.4

6 months ago

1.0.3

7 months ago

1.0.1

2 years ago

1.0.0

3 years ago