mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
370 B
370 B
order | title | ||||
---|---|---|---|---|---|
5 |
|
zh-CN
可以自定义关闭,自定义的文字会替换原先的关闭 Icon
。
en-US
Replace the default icon with customized text.
import { Alert } from 'antd';
ReactDOM.render(
<Alert message="Info Text" type="info" closeText="Close Now" />,
mountNode
);