Drawer / Sheet | CombricSkip to content

Drawer / Sheet

Combric

Left or right modal drawer; Sheet names are exact aliases.

@combric/react · v1.5.1 · Current

Import and usage

import { Drawer, DrawerTrigger, DrawerContent, DrawerTitle, DrawerDescription, DrawerClose, Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription, SheetClose } from "@combric/react";

Load the native stylesheet with @import "@combric/react/css";. This path does not require Tailwind.

Examples

Filter drawer

Left side

Public API

Public exports
Name
Drawer
DrawerTrigger
DrawerContent
DrawerTitle
DrawerDescription
DrawerClose
Sheet
SheetTrigger
SheetContent
SheetTitle
SheetDescription
SheetClose
Documented contracts
Property / capabilityPublished contract
sideleft | right
ContractDialog-compatible open state and portal contract
DrawerTrigger/DrawerClose leadingIcon/trailingIconReactNode decorative slots
DrawerTitle iconReactNode decorative slot
ContractSheetTrigger/SheetClose/SheetTitle inherit the exact Drawer contracts
Exact aliases
AliasCanonical export
SheetDrawer
SheetTriggerDrawerTrigger
SheetContentDrawerContent
SheetTitleDrawerTitle
SheetDescriptionDrawerDescription
SheetCloseDrawerClose

Accessibility

Reuses Dialog modal isolation, focus trap, dismissal, naming, and restoration behavior.

Keyboard

Tab/Shift+Tab cycle; Escape closes and restores trigger focus.

CSS and customization

Combric classes and canonical --combric-* variables provide the package presentation. Consumer className extends the required class; it does not replace the component contract.

Motion

Drawer/Sheet content travels in from its side by default while the backdrop fades. Set className on DrawerContent and use data-side, data-state, and data-presence to replace the directional CSS; Combric still owns focus, keyboard behavior, interruption, and final unmount. Reduced motion is automatic. See the Motion Foundation.

Source

View source on GitHub