UNPKG

adui

Version:

<div> <img src="https://wxa.wxs.qq.com/mpweb/delivery/legacy/wxadtouch/upload/t1/od834zef_52939fc6.png" style="margin:40px 0 0 -8px; background-color: #fcfcfc; box-shadow: none;" /> </div>

45 lines (44 loc) 903 B
import * as React from "react"; import PropTypes from "prop-types"; import "./style"; export interface ITipProps { [key: string]: any; /** * 子节点 */ children?: React.ReactNode; /** * 附加类名 */ className?: string; /** * 设置类型 */ intent?: "normal" | "primary" | "success" | "warning" | "danger"; } /** * 表单 tip */ declare const Tip: { (props: ITipProps): JSX.Element; propTypes: { /** * 子节点 */ children: PropTypes.Requireable<PropTypes.ReactNodeLike>; /** * 附加类名 */ className: PropTypes.Requireable<string>; /** * 设置类型 */ intent: PropTypes.Requireable<string>; }; defaultProps: { children: null; className: null; intent: string; }; }; export default Tip;