NEURALNG
OVERLAYBETA

Drawer

A native top-layer edge panel with logical placement, deterministic dismissal, focus restoration and independently composable sections.

Native dialogRTL logical edgesSSR safe

GET STARTED

Import

Import only the standalone sections used by the template.

app.ts TypeScript
import {
  NeuralDrawer,
  NeuralDrawerHeader,
  NeuralDrawerBody,
  NeuralDrawerFooter,
  NeuralDrawerInitialFocus,
} from '@neural-ng/core/drawer';

@Component({ imports: [
  NeuralDrawer, NeuralDrawerHeader, NeuralDrawerBody,
  NeuralDrawerFooter, NeuralDrawerInitialFocus,
] })

Basic composition

Header and footer remain optional. The body owns independent scrolling while the panel stays in the browser top layer.

WORKSPACE

Agent settings

Configure the runtime, permissions and delivery policy for this workspace.

Logical positions

Start and end follow document direction. Top and bottom span the viewport width using the same native lifecycle.

Logical start

Mirrors to the right in RTL.

Logical end

Default application panel.

Top panel

Viewport-wide contextual content.

Bottom panel

Touch-friendly action surface.

Controlled Signal state

open is a model input, so one state source can drive template and imperative interactions.

Closed

Controlled state

The Signal model and native state remain synchronized.

Non-modal panel

Set modal false when the page must remain interactive. The Popover top layer keeps the panel above the topbar without making background content inert.

Dismiss policy

Escape and backdrop dismissal can be disabled independently. A visible close path must always remain.

Required decision

Backdrop and Escape do not dismiss this workflow.

Lifecycle and close reasons

opened confirms top-layer entry. closed reports API, Escape, backdrop, close-button or native intent.

Closed

Lifecycle

Last close: No drawer closed yet.

Unstyled and typed slots

Headless mode retains native dialog behavior, placement, focus and structural hooks while consumer classes own every visual decision.

Consumer canvas

Structure and native behavior remain library-owned.

Beta boundary

Drawer owns edge placement, native top-layer behavior, modal policy, focus lifecycle and composition. Persistent application sidebars, resizing and swipe gestures remain separate concerns.

Task details

The document remains interactive behind this panel.