@cerberus-design/react
Version:
The Cerberus Design React component library.
18 lines (17 loc) • 743 B
TypeScript
import { NotificationVariantProps } from 'styled-system/recipes';
import { DialogHTMLAttributes, PropsWithChildren, MouseEvent } from 'react';
export interface NotificationBaseProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'onClose'> {
/**
* The unique id of the notification. Required for the onClose callback.
*/
id: string;
/**
* Called when the close button is clicked.
*/
onClose?: (e: MouseEvent<HTMLButtonElement>) => void;
}
export type NotificationProps = NotificationBaseProps & NotificationVariantProps;
/**
* @deprecated use `NotificationParts` instead
*/
export declare function Notification(props: PropsWithChildren<NotificationProps>): import("react/jsx-runtime").JSX.Element;