@mijadesign/mjui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
12 lines (11 loc) • 567 B
TypeScript
import React, { FunctionComponent, ReactNode } from 'react';
import { TaroToastProps } from '@nutui/nutui-react-taro';
export declare const Toast: FunctionComponent<Partial<TaroToastProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'content'>> & {
show: typeof show;
hide: typeof hide;
};
export interface ToastOptions extends Partial<Omit<TaroToastProps, 'visible' | 'title'>> {
title?: string | undefined | ReactNode;
}
export declare function show(selector: string, options: ToastOptions): void;
export declare function hide(selector: string): void;