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

Some contents...

Some contents...

Some contents...

); }; export default App;