Open joelzwarrington opened 2 years ago
There are many cases where we'd need to display a drawer like component similar to ones present in Atlantis:
Could we implement something like this:
const [isOpen, setIsOpen] = useState(false); return ( <SideDrawer activator={<Button />} direction="left" open={isOpen} onOpenRequest={handleOpen} onDismissRequest={handleDismiss}> <h1>I am content inside the drawer</h1> <SideDrawer /> ) function handleOpen() { setIsOpen(true); } function handleDismiss() { setIsOpen(false); }
on dismiss request would trigger when:
The drawer would overlap content and be placed on-top and would slide in based on the direction.
Also would be good to have accessibility considered.
When on a mobile like/sized device, the drawer could take the entire page?
@chris-at-jobber any thoughts on this?
There are many cases where we'd need to display a drawer like component similar to ones present in Atlantis:
Could we implement something like this:
on dismiss request would trigger when:
The drawer would overlap content and be placed on-top and would slide in based on the direction.
Also would be good to have accessibility considered.
When on a mobile like/sized device, the drawer could take the entire page?