@quanxi/ui
Version:
全悉组件库
33 lines (32 loc) • 710 B
TypeScript
import './style.scss';
import React from 'react';
type AlertType = 'success' | 'info' | 'warning' | 'error';
export interface AlertProps {
className?: string;
/**
* 警告提示的样式
*/
type?: AlertType;
/**
* 警告提示内容
*/
message?: string;
/**
* 警告提示的辅助性文字介绍
*/
description?: string;
/**
* 是否显示图标
*/
showIcon?: boolean;
/**
* 自定义图标, showIcon 为 true 时生效
*/
icon?: React.ReactNode;
/**
* 是否显示关闭按钮,开启手动关闭功能
*/
closeable?: boolean;
}
declare const Alert: React.FC<AlertProps>;
export default Alert;