Drawer

A panel that slides in from the edge of the screen. Built on top of Dialog primitives.

Usage

PreviewCode

API Reference

VoltDrawerClose — volt-drawer-close

InputTypeDefault
class string ''
label string 'Close'

VoltDrawerContent — [voltDrawerContent]

InputTypeDefault
side DrawerSide 'right'
class string ''
role NgpDialogRole | undefined —
modal boolean —

VoltDrawerDescription — [voltDrawerDescription]

InputTypeDefault
class string ''

VoltDrawerOverlay — [voltDrawerOverlay]

InputTypeDefault
class string ''
closeOnClick boolean | undefined —

VoltDrawerTitle — [voltDrawerTitle]

InputTypeDefault
class string ''

VoltDrawer — [voltDrawer]

InputTypeDefault
closeOnEscape boolean true
voltDrawer TemplateRef<NgpDialogContext<unknown, unknown>> —
OutputType
closedunknown

Component Source

Install via CLI:npx @voltui/cli add drawer
TypeScript
Loading editor…

Copy this code to your project. The component uses ng-primitives/dialog.