Alert.html
492 Bytes
<div className={'ant-alert' + (type ? " ant-alert-" + type : "") + (!showIcon ? " ant-alert-no-icon" : "") + (description?" ant-alert-with-description":"")}>
{showIcon && <antd-icon type="{{state.icons[type]}}" className="ant-alert-icon"></antd-icon>}
<div className="ant-alert-content">
<div className="ant-alert-message">{message}</div>
{description && <div className="ant-alert-description"><antd-slot content="{{description}}"></antd-slot></div>}
</div>
</div>