@iobroker/adapter-react
Version:
React classes to develop admin interfaces for ioBroker with react.
44 lines (43 loc) • 1.17 kB
TypeScript
export default _export;
export type LoaderProps = {
/**
* The key to identify this component.
*/
key?: string;
/**
* The size in pixels of this loader.
*/
size?: number;
/**
* The chosen theme type.
*/
themeType?: string;
/**
* The chosen theme.
*/
theme?: string;
};
/** @type {typeof Loader} */
declare const _export: typeof Loader;
/**
* @typedef {object} LoaderProps
* @property {string} [key] The key to identify this component.
* @property {number} [size] The size in pixels of this loader.
* @property {string} [themeType] The chosen theme type.
* @property {string} [theme] The chosen theme.
*
* @extends {React.Component<LoaderProps>}
*/
declare class Loader extends React.Component<LoaderProps, any, any> {
constructor(props: LoaderProps | Readonly<LoaderProps>);
constructor(props: LoaderProps, context: any);
render(): JSX.Element;
}
declare namespace Loader {
namespace propTypes {
const size: PropTypes.Requireable<number>;
const themeType: PropTypes.Requireable<string>;
}
}
import React from "react";
import PropTypes from "prop-types";