UNPKG

@uva-glass/component-library

Version:

React components UvA

13 lines (12 loc) 532 B
import { ReactNode } from 'react'; export type NotificationVariant = 'default' | 'bar'; export type NotificationLevel = 'neutral' | 'information' | 'success' | 'warning' | 'danger'; export interface NotificationProps { title?: string; subtitle?: string; action?: ReactNode; variant?: NotificationVariant; level: NotificationLevel; onClose?: () => void; } export declare const Notification: ({ title, subtitle, action, variant, level, onClose }: NotificationProps) => import("react/jsx-runtime").JSX.Element;