import React, { useState } from "react";
import { Button, Drawer, Flex } from "playbook-ui";
const DrawerSizes = () => {
// Individual state variables for each drawer size
const [openedNoOverlayDrawer, setOpenedNoOverlayDrawer] = useState(false);
const [openedOverlayDrawer, setOpenedOverlayDrawer] = useState(false);
// Toggle functions for each drawer
const toggleNoOverlayDrawer = () => setOpenedNoOverlayDrawer(!openedNoOverlayDrawer);
const toggleOverlayDrawer = () => setOpenedOverlayDrawer(!openedOverlayDrawer);
return (
<>
{/* Drawers for each size */}
This is a Drawer with no overlay
This is a Drawer with an overlay
>
);
};
export default DrawerSizes;