ant-design/components/tabs/demo/size.md

29 lines
500 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 5
title:
zh-CN: 迷你型
en-US: Mini tab
2016-03-31 09:40:55 +08:00
---
2015-06-19 17:26:24 +08:00
2016-08-03 10:39:20 +08:00
## zh-CN
2015-06-19 17:26:24 +08:00
用在弹出框等较狭窄的容器内。
2016-08-03 10:39:20 +08:00
## en-US
Small size can be uesed in Modal.
2015-06-19 17:26:24 +08:00
````jsx
import { Tabs } from 'antd';
const TabPane = Tabs.TabPane;
2015-06-19 17:26:24 +08:00
2015-10-20 16:47:55 +08:00
ReactDOM.render(
<Tabs defaultActiveKey="2" size="small">
2016-08-03 10:39:20 +08:00
<TabPane tab="Tab 1" key="1">Content of tab 1</TabPane>
<TabPane tab="Tab 2" key="2">Content of tab 2</TabPane>
<TabPane tab="Tab 3" key="3">Content of tab 3</TabPane>
2015-06-19 17:26:24 +08:00
</Tabs>
, mountNode);
2015-06-19 17:26:24 +08:00
````