mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 07:09:55 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
21 lines
355 B
Markdown
21 lines
355 B
Markdown
---
|
|
order: 5
|
|
title:
|
|
zh-CN: 自定义关闭
|
|
en-US: Customized Close Text
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
可以自定义关闭,自定义的文字会替换原先的关闭 `Icon`。
|
|
|
|
## en-US
|
|
|
|
Replace the default icon with customized text.
|
|
|
|
```tsx
|
|
import { Alert } from 'antd';
|
|
|
|
export default () => <Alert message="Info Text" type="info" closeText="Close Now" />;
|
|
```
|