You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
410 B

---
order: 5
title:
zh-CN: 自定义关闭
en-US: Customized Close Text
---
9 years ago
## zh-CN
可以自定义关闭,自定义的文字会替换原先的关闭 `Icon`
9 years ago
## en-US
Replace the default icon with customized text.
```tsx
import { Alert } from 'antd';
import React from 'react';
9 years ago
const App: React.FC = () => <Alert message="Info Text" type="info" closeText="Close Now" />;
export default App;
```