mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 01:19:45 +08:00
392 B
392 B
order | title | ||||
---|---|---|---|---|---|
3 |
|
zh-CN
size="small"
表示小号开关。
en-US
size="small"
represents a small sized switch.
import { Switch } from 'antd';
import React from 'react';
const App: React.FC = () => (
<>
<Switch defaultChecked />
<br />
<Switch size="small" defaultChecked />
</>
);
export default App;