I've created a Drawer component based off of the Radix Dialog component something I think the Radix library is missing. Do you have any interest in adding this component? Here's a rough sketch of how it would look:
const DrawerWithState = () => {
const [drawerOpen, setDrawerOpen] = useState<boolean>(false);
const handleDrawerToggle = () => {
setDrawerOpen(!drawerOpen);
};
return (
<>
<Button onClick={handleDrawerToggle}>Click</Button>
<Drawer
isOpen={drawerOpen}
onOpenChange={handleDrawerToggle}
description="Navigation drawers provide access to destinations in your app. Side sheets are surfaces containing supplementary content that are anchored to the left or right edge of the screen."
/>
</>
);
};
{
label: "Drawer",
link: `${REPO_URL}/components/drawer.tsx`,
component: <DrawerWithState />,
},
screenshots:
I have the changes on a PR locally. I'd very much like to contribute to your library moving forward 👍 . Please let me know your thoughts and feedback? Thanks!
Much appreciated, but I'll stick to the official Radix primitives for the demo. We have things like shadcn/ui now, which is a fully built collection of components.
I've created a
Drawer
component based off of the RadixDialog
component something I think the Radix library is missing. Do you have any interest in adding this component? Here's a rough sketch of how it would look:drawer.tsx:
index.tsx:
screenshots:
I have the changes on a PR locally. I'd very much like to contribute to your library moving forward 👍 . Please let me know your thoughts and feedback? Thanks!