@pagamio/frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
13 lines (12 loc) • 329 B
TypeScript
import React from 'react';
type ToastVariant = 'success' | 'error' | 'info';
interface ToastProps {
id: number;
title?: string;
message: string;
variant?: ToastVariant;
onClose: (id: number) => void;
}
declare const Toast: React.FC<ToastProps>;
export default Toast;
export type { ToastVariant, ToastProps };