API reference
@salmonui/overlays/drawer
10 exported symbols: 7 functions, 2 interfaces and 1 type. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/overlays/drawer';Functions
DrawerDrawer (.salmon-drawer): a modal (or modeless) dialog docked to an edge, on the same dialog host. Escape and a backdrop press close it by default. The Navigati…DrawerBodyScrolling content region (.salmon-dialog-body).DrawerCloseCloses the dialog (reason: 'close'); render swaps the element.DrawerDescriptionDescription (<p class="salmon-dialog-description">); describes the dialog.DrawerTitleHeading (<h2 class="salmon-dialog-title">); labels the dialog and is the default drag handle.DrawerTriggerOpens the dialog (aria-haspopup="dialog", aria-expanded); render swaps the element. Use it in trigger.
Interfaces
DrawerOpenChangeEventSecond argument of onOpenChange. preventDefault() keeps an uncontrolled dialog as it is.DrawerProps