goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
18 lines • 782 B
TypeScript
import { default as React } from 'react';
import { AlertStyles } from '../../theme';
export interface AlertProps {
/** The severity of the alert, which determines the icon and color scheme. */
severity: 'error' | 'warning' | 'info' | 'success';
/** The message to be displayed in the alert. */
message: string;
/** Callback fired when the alert is closed. If not provided, the close button will not be shown. */
onClose?: () => void;
/** Comprehensive styling options including theme, custom colors, and layout properties. */
styles?: AlertStyles;
}
/**
* A component for displaying important messages with different severity levels and themes.
*/
declare const Alert: React.FC<AlertProps>;
export default Alert;
//# sourceMappingURL=index.d.ts.map