@rws-aoa/react-library
Version:
RWS AOA Design System
31 lines • 868 B
TypeScript
import { SxProps } from '@mui/material';
export type Severity = 'error' | 'info' | 'success' | 'warning';
export interface AoaNotificationProps {
/**
* Data-qa tag for E2E test purposes
*/
readonly 'data-qa'?: string;
/**
* The message to be displayed in the notification
*/
readonly message: string;
/**
* The type of notification
*/
readonly severity: Severity;
/**
* Material UI's property to apply styling
*/
readonly sx?: SxProps;
}
/**
* Constructs an alert using pre-defined Rijks styling
*
* @param props - Props to pass to the alert
* @example
* ```jsx
* <AoaNotification message="wrong password" severity="error" />
* ```
*/
export declare function AoaNotification(props: AoaNotificationProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=Notification.d.ts.map