UNPKG

zent

Version:

一套前端设计语言和基于React的实现

39 lines (35 loc) 857 B
--- order: 3 zh-CN: title: "五种样式:info, success, warning, error 和 hint" info: 这个是默认的 info 样式 success: 这个是 success 样式 warning: 这个是 warning 样式 error: 这个是 error 样式 hint: 这个是 hint 样式 en-US: title: "Five styles: info, success, warning, error and hint" info: Default info style success: Success style warning: Warning style error: Error style hint: Slight style --- ```jsx import { Alert } from 'zent'; ReactDOM.render( <div className="zent-alert-example"> <Alert type="info">{i18n.info}</Alert> <Alert type="success">{i18n.success}</Alert> <Alert type="warning">{i18n.warning}</Alert> <Alert type="error">{i18n.error}</Alert> <Alert type="hint">{i18n.hint}</Alert> </div>, mountNode ); ``` <style> .zent-alert-example .zent-alert { margin-bottom: 16px; } </style>