--- order: 5 title: zh-CN: 大小 en-US: Size --- ## zh-CN 大号页签用在页头区域,小号用在弹出框等较狭窄的容器内。 ## en-US Large size tabs are usually used in page header, and small size could be used in Modal. ```tsx import type { RadioChangeEvent } from 'antd'; import { Radio, Tabs } from 'antd'; import type { SizeType } from 'antd/lib/config-provider/SizeContext'; import React, { useState } from 'react'; const { TabPane } = Tabs; const App: React.FC = () => { const [size, setSize] = useState('small'); const onChange = (e: RadioChangeEvent) => { setSize(e.target.value); }; return (
Small Middle Large Content of tab 1 Content of tab 2 Content of tab 3 Content of card tab 1 Content of card tab 2 Content of card tab 3
); }; export default App; ```