@up-group-ui/react-controls
Version:
Up shared react controls
18 lines (17 loc) • 581 B
TypeScript
import React from 'react';
import { WithThemeProps } from '../../../../Common/theming';
export declare type ErrorDisplayMode = 'inline' | 'tooltip';
export interface ErrorDisplayProps {
error: string;
showError: boolean;
hasError: boolean;
displayMode?: ErrorDisplayMode;
}
export default class ErrorDisplay extends React.Component<ErrorDisplayProps & WithThemeProps> {
static defaultProps: {
displayMode: string;
theme: import("../../../../Common/theming").UpThemeInterface;
};
constructor(p: any, c: any);
render(): JSX.Element;
}