UNPKG

grepsr-ui-elements

Version:

62 lines (61 loc) 1.49 kB
import PropTypes from "prop-types"; import { ReactNode } from "react"; interface AlertProps { /** * Alert contents */ title: ReactNode; /** * Alert color */ color: "info" | "success" | "error" | "warning"; /** * Alert severity. The severity of the alert. This defines the color and icon used. */ severity?: "info" | "success" | "error" | "warning" | string | undefined; /** * Alert icon * */ icon?: ReactNode; /** * Alert variant */ variant: "filled" | "outlined" | "standard"; /** * Alert action */ action?: ReactNode; /** * Alert close handler */ onClose?: () => void; /** * Alert helper text */ helperText?: string; /** * Alert rest props */ restProps: any; } export { AlertProps }; declare const GrepsrAlertHeading: { (props: AlertProps): JSX.Element; defaultProps: { title: string; color: string; variant: string; severity: string; }; propTypes: { title: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>; color: PropTypes.Validator<string>; variant: PropTypes.Validator<string>; severity: PropTypes.Requireable<string>; onClose: PropTypes.Requireable<(...args: any[]) => any>; helperText: PropTypes.Requireable<string>; restProps: PropTypes.Requireable<Object>; }; }; export default GrepsrAlertHeading;