import React, { useState } from 'react'; import { Button, Drawer, Radio, Space } from 'antd'; import type { DrawerProps, RadioChangeEvent } from 'antd'; 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;