mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 08:59:40 +08:00
c5bcf57537
* 🆕 Add text type Button `<Button type="text" />` close #15892 * Add test cases * missing type * missing type * fix missing type * Update components/button/index.zh-CN.md Co-Authored-By: zefeng <zefengbao@outlook.com> Co-authored-by: Amumu <yoyo837@hotmail.com> Co-authored-by: zefeng <zefengbao@outlook.com>
31 lines
630 B
Markdown
31 lines
630 B
Markdown
---
|
|
order: 0
|
|
title:
|
|
zh-CN: 按钮类型
|
|
en-US: Type
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
按钮有四种类型:主按钮、次按钮、虚线按钮和链接按钮。主按钮在同一个操作区域最多出现一次。
|
|
|
|
## en-US
|
|
|
|
There are `primary` button, `default` button, `dashed` button and `link` button in antd.
|
|
|
|
```jsx
|
|
import { Button } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<>
|
|
<Button type="primary">Primary Button</Button>
|
|
<Button>Default Button</Button>
|
|
<Button type="dashed">Dashed Button</Button>
|
|
<br />
|
|
<Button type="text">Text Button</Button>
|
|
<Button type="link">Link Button</Button>
|
|
</>,
|
|
mountNode,
|
|
);
|
|
```
|