@trail-ui/react
Version:
14 lines (11 loc) • 519 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { ReactNode } from 'react';
import { ToastState } from '@react-stately/toast';
interface ToastNotificationProps {
children: (state: ToastState<ReactNode>) => ReactNode;
variant: 'default' | 'success' | 'warning' | 'error' | 'info';
title?: string;
duration?: number;
}
declare function ToastNotification({ children, ...props }: ToastNotificationProps): react_jsx_runtime.JSX.Element;
export { ToastNotification, ToastNotificationProps };