Sheet
Edge-anchored modal sheet panel supporting top, right, bottom, and left sides.
import {
Drawer,
DrawerBackdrop,
DrawerClose,
DrawerContent,
DrawerDescription,
DrawerTitle,
DrawerTrigger,
} from "@ilha/ui-sdk/drawer";
import { button } from "coatx/button";
import {
sheetBackdrop,
sheetClose,
sheetContent,
sheetDescription,
sheetHeader,
sheetTitle,
} from "coatx/sheet";
export const SideSheet = () => (
<Drawer side="right">
<DrawerTrigger {...button({ variant: "outline" })}>
Open sheet
</DrawerTrigger>
<DrawerBackdrop {...sheetBackdrop()} />
<DrawerContent {...sheetContent({ side: "right" })}>
<div {...sheetHeader()}>
<DrawerTitle {...sheetTitle()}>Inspector</DrawerTitle>
<DrawerDescription {...sheetDescription()}>
Press Escape or click outside to close.
</DrawerDescription>
</div>
<DrawerClose aria-label="Close" {...sheetClose()}>
×
</DrawerClose>
</DrawerContent>
</Drawer>
);