@cfxjs/react-ui
Version:
Modern and minimalist React UI library.
17 lines (16 loc) • 543 B
TypeScript
import React from 'react';
import { NotificationColors, NotificationPlacement } from '../utils/prop-types';
export interface Notification {
icon?: React.ReactNode;
title: React.ReactNode;
content?: React.ReactNode;
delay?: number;
closeable?: boolean;
placement?: NotificationPlacement;
className?: string;
onClose?: (id: string) => void;
shadow?: boolean;
color?: NotificationColors;
}
declare const useNotifications: () => [Notification[], (t: Notification) => void];
export default useNotifications;