zent
Version:
一套前端设计语言和基于React的实现
35 lines (31 loc) • 546 B
Markdown
order: 1
zh-CN:
title: 基础用法
content: 通知提示文案
link: 文字链接
en-US:
title: Basic Usage
content: Info Alert Text
link: Text Link
```jsx
import { Alert } from 'zent';
ReactDOM.render(
<div className="zent-alert-example">
<Alert>
<span>{i18n.content}</span>
<a href="javascript:;" className="zent-alert-demo-text">
{i18n.link}
</a>
</Alert>
<Alert title="{i18n.title}" description="{i18n.content}" />
</div>,
mountNode
);
```
<style>
.zent-alert-demo-text {
margin-left: 8px;
}
</style>