UNPKG

@rainliu/y-ui

Version:

# @rainliu/y-ui > 一款基于 React 的现代化 UI 组件库,提供优雅、简洁且易于使用的组件,助力快速开发高质量的 Web 应用。

31 lines (26 loc) 1.02 kB
import * as react from 'react'; import { PropsWithChildren, ReactNode } from 'react'; import * as react_jsx_runtime from 'react/jsx-runtime'; declare function ConfigProvider(props: PropsWithChildren): react_jsx_runtime.JSX.Element; declare function useMessage(): MessageRef; interface MessageProps { style?: React.CSSProperties; className?: string; id?: string | number; duration?: number; type?: "success" | "error" | "warning" | "info"; content: string | ReactNode; onClose?: () => void; } interface MessageItemProps { item: MessageProps; onRemove: (id: string | number) => void; } interface MessageRef { add: (message: MessageProps) => void; update: (message: MessageProps) => void; remove: (id: string | number) => void; clearAll: () => void; } declare const Message: react.ForwardRefExoticComponent<object & react.RefAttributes<MessageRef>>; export { ConfigProvider, type MessageItemProps, type MessageProps, type MessageRef, Message as default, useMessage };