mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 15:19:58 +08:00
454 B
Executable File
454 B
Executable File
order | title | ||||
---|---|---|---|---|---|
1 |
|
zh-CN
使用 okText
和 cancelText
自定义按钮文字。
en-US
Set okText
and cancelText
props to customize the button's labels.
import { Popconfirm } from 'antd';
import React from 'react';
const App: React.FC = () => (
<Popconfirm title="Are you sure?" okText="Yes" cancelText="No">
<a href="#">Delete</a>
</Popconfirm>
);
export default App;