UNPKG

@bottledbrains/ui

Version:

A React UI library based on Tailwind CSS

14 lines (13 loc) 442 B
import { FC } from "react"; export interface MessageProps { text: string; type: 'warn' | 'error' | 'success'; duration?: number; } export declare const Message: FC<MessageProps>; declare const message: { warn: (text: string, duration?: number | undefined) => void; error: (text: string, duration?: number | undefined) => void; success: (text: string, duration?: number | undefined) => void; }; export default message;