@gooddata/react-components
Version:
GoodData.UI - A powerful JavaScript library for building analytical applications
39 lines (38 loc) • 1.21 kB
TypeScript
import * as React from "react";
import * as PropTypes from "prop-types";
import { Requireable } from "prop-types";
export { Requireable };
export declare const ErrorPropTypes: {
icon: PropTypes.Requireable<any>;
message: PropTypes.Validator<any>;
className: PropTypes.Requireable<any>;
style: PropTypes.Requireable<any>;
width: PropTypes.Requireable<any>;
height: PropTypes.Requireable<any>;
};
export interface IErrorProps {
code?: string;
icon?: string;
message: string;
description?: string;
className?: string;
style?: object;
width?: any;
height?: any;
}
/**
* [ErrorComponent](http://sdk.gooddata.com/gooddata-ui/docs/error_component.html)
* is a component that renders a default error message
*/
export declare class ErrorComponent extends React.Component<IErrorProps, null> {
static defaultProps: Partial<IErrorProps>;
static propTypes: {
icon: PropTypes.Requireable<any>;
message: PropTypes.Validator<any>;
className: PropTypes.Requireable<any>;
style: PropTypes.Requireable<any>;
width: PropTypes.Requireable<any>;
height: PropTypes.Requireable<any>;
};
render(): JSX.Element;
}