Drawer

A panel that slides in from the edge of the screen, commonly used for navigation, details, or forms.

Examples

Drawer

Drawer with left and right positions

Code

<wdc-button (click)="isLeftDrawerOpen = true">Left Drawer</wdc-button>
<wdc-button (click)="isRightDrawerOpen = true">Right Drawer</wdc-button>

API Reference

InputTypeDefaultDescription
isOpenbooleanfalseWhether the sidebar is open or not.
position'left' | 'right''left'Position of the sidebar.
closeOnBackdropClickbooleantrueWhether to close the sidebar when clicking on the backdrop.
closevoidundefinedCallback function to be called when the sidebar is closed.