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

28 lines
501 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 5
2016-09-01 18:12:12 +08:00
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
2016-09-01 18:12:12 +08:00
Small size can be used in Modal.
2016-08-03 10:39:20 +08:00
2017-01-19 15:19:03 +08:00
````__react
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
````