ui: drawer component implementation start

This commit is contained in:
Nishchit Dhanani
2023-07-21 22:47:17 +05:30
committed by Nishchit
parent 6552518555
commit e88780ee78

View File

@@ -0,0 +1,18 @@
import { useDisclosure } from '@mantine/hooks';
import { Drawer, Button, Group } from '@mantine/core';
function Demo() {
const [opened, { open, close }] = useDisclosure(false);
return (
<>
<Drawer opened={opened} onClose={close} title="Authentication">
{/* Drawer content */}
</Drawer>
<Group position="center">
<Button onClick={open}>Open Drawer</Button>
</Group>
</>
);
}