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.

27 lines
539 B

# 按钮尺寸
- order: 2
按钮有大、中、小三种尺寸。
10 years ago
通过设置 `size``large` `small` 分别把按钮设为大、小尺寸。若不设置 `size`,则尺寸为中。
---
````jsx
import { Button } from 'antd';
9 years ago
ReactDOM.render(<div>
<Button type="primary" size="large">大号按钮</Button>
<Button type="primary">中号按钮(默认)</Button>
<Button type="primary" size="small">小号按钮</Button>
</div>
, mountNode);
````
<style>
#components-button-demo-size .ant-btn {
margin-right: 8px;
}
</style>