mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
561 B
561 B
order | title |
---|---|
1 | 图标按钮 |
Button
内可以嵌套图标,图标可以放在文字前、后,也可以单独存在。
import { Button } from 'antd';
ReactDOM.render(<div>
<Button type="primary" shape="circle" icon="search" />
<Button type="primary" icon="search">按钮</Button>
<br />
<Button type="ghost" shape="circle-outline" icon="search" />
<Button type="ghost" icon="search">按钮</Button>
</div>, mountNode);