UNPKG

@douyinfe/semi-ui

Version:

A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.

11 lines (10 loc) 428 B
import React from 'react'; import { ToastProps } from '@douyinfe/semi-foundation/lib/cjs/toast/toastFoundation'; export default function useToast(): (React.JSX.Element | { success: (config: ToastProps) => string; info: (config: ToastProps) => string; error: (config: ToastProps) => string; warning: (config: ToastProps) => string; open: (config: ToastProps) => string; close: (id: string) => void; })[];