import React from 'react'; import { Switch } from 'antd'; const App: React.FC = () => ( <> <Switch defaultChecked /> <br /> <Switch size="small" defaultChecked /> </> ); export default App;