grommet
Version:
focus on the essential experience
31 lines (26 loc) • 681 B
TypeScript
import * as React from 'react';
import { LayerPositionType } from '../Layer';
import { AnchorType } from '..';
export type StatusType = 'critical' | 'warning' | 'normal' | 'info' | 'unknown';
export interface NotificationProps {
id?: string;
actions?: AnchorType[];
global?: boolean;
title?: string;
message?: string | React.ReactNode;
messages?: {
close?: string;
};
status?: StatusType;
time?: number;
toast?:
| boolean
| {
autoClose?: boolean;
position?: LayerPositionType;
};
onClose?: (...args: any[]) => any;
icon?: JSX.Element;
}
declare const Notification: React.FC<NotificationProps>;
export { Notification };