mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +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
30 lines
652 B
Markdown
30 lines
652 B
Markdown
---
|
|
order: 0
|
|
title:
|
|
zh-CN: 按钮类型
|
|
en-US: Type
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
按钮有五种类型:主按钮、次按钮、虚线按钮、文本按钮和链接按钮。主按钮在同一个操作区域最多出现一次。
|
|
|
|
## en-US
|
|
|
|
There are `primary` button, `default` button, `dashed` button, `text` button and `link` button in antd.
|
|
|
|
```jsx
|
|
import { Button } from 'antd';
|
|
|
|
export default () => (
|
|
<>
|
|
<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>
|
|
</>
|
|
);
|
|
```
|