ant-design/components/button/demo/basic.md

33 lines
707 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 0
2016-04-20 16:28:07 +08:00
title:
zh-CN: 按钮类型
en-US: Type
2016-03-31 09:40:55 +08:00
---
2016-04-20 16:28:07 +08:00
## zh-CN
按钮有五种类型:主按钮、次按钮、虚线按钮、文本按钮和链接按钮。主按钮在同一个操作区域最多出现一次。
2015-05-15 16:00:08 +08:00
2016-04-20 16:28:07 +08:00
## en-US
There are `primary` button, `default` button, `dashed` button, `text` button and `link` button in antd.
2016-04-20 16:28:07 +08:00
```tsx
import { Button } from 'antd';
2022-05-23 14:37:16 +08:00
import React from 'react';
2015-09-27 16:30:35 +08:00
const App: React.FC = () => (
<>
<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>
</>
2018-11-28 15:00:03 +08:00
);
export default App;
2019-05-07 14:57:32 +08:00
```