import React, { useState } from 'react'; import type { DrawerProps, RadioChangeEvent } from 'antd'; import { Button, Drawer, Radio, Space } from 'antd'; const App: React.FC = () => { const [open, setOpen] = useState(false); const [placement, setPlacement] = useState('left'); const showDrawer = () => { setOpen(true); }; const onClose = () => { setOpen(false); }; const onChange = (e: RadioChangeEvent) => { setPlacement(e.target.value); }; return ( <> top right bottom left

Some contents...

Some contents...

Some contents...

); }; export default App;