Overview

tng-drawer is a slide-out panel (left, right, top, bottom). Control visibility with [open]; handle (closed) to set open to false. Closes on backdrop click and Escape by default. Supports focus trap. Use placement and slot-based styling (backdrop, panel, size, height).

Quick example

Basic
HTMLTSCSS

<button (click)="open.set(true)">Open drawer</button>
<tng-drawer [open]="open()" (closed)="open.set(false)" placement="right">
  <div class="p-4">... <button (click)="open.set(false)">Close</button></div>
</tng-drawer>

Features

Controlled open

[open] and (closed). Close reasons: outside-click, escape, programmatic.

Placement

placement: left | right | top | bottom. slot.size / slot.height for dimensions.