mirror of
https://github.com/LukeHagar/firecamp.git
synced 2025-12-06 04:19:43 +00:00
ui: drawer component implementation start
This commit is contained in:
committed by
Nishchit
parent
6552518555
commit
e88780ee78
18
platform/firecamp-ui/src/components/drawer/Drawer.tsx
Normal file
18
platform/firecamp-ui/src/components/drawer/Drawer.tsx
Normal 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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user