Drawer / Sheet | CombricSkip to content

Drawer / Sheet

Combric

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

@combric/react · v1.1.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
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.

Source

View source on GitHub