@gpa-gemstone/react-interactive
Version:
Interactive UI Components for GPA products
30 lines (29 loc) • 826 B
TypeScript
import * as React from 'react';
interface IProps {
/**
* Optional Class to be used on alert
*/
Class?: 'alert-primary' | 'alert-secondary' | 'alert-success' | 'alert-danger' | 'alert-warning' | 'alert-info' | 'alert-light';
/**
* Optional Style to be used on alert
*/
Style?: React.CSSProperties;
/**
* Optional Flag to render the X
*/
ShowX?: boolean;
/**
* Optional Value to trigger re-showing the alert
* @optional
*/
ReTrigger?: unknown;
/**
* Optional Callback function for onClick event
* @optional
* @param e mouse event
* @returns
*/
OnClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
}
declare const Alert: (props: React.PropsWithChildren<IProps>) => JSX.Element;
export default Alert;