Atomic Angular — Doc interne

Backdrop

A full-screen dimming overlay, shown and hidden through BackdropService — not a settable input.

<backdrop> renders nothing but a dimmed, full-screen overlay, and shows or hides itself in response to BackdropService.show()/hide(). It is meant to sit once near the root of the application, behind whatever overlay (a custom stacked panel, say) needs a scrim.

Minimal example

Mounted once at the application root
app.component.ts
import { Component, inject } from "@angular/core";
import { BackdropComponent, BackdropService } from "@sinequa/atomic-angular";

@Component({
  selector: "app-root",
  imports: [BackdropComponent],
  template: `
    <router-outlet />
    <backdrop />
  `,
})
export class AppComponent {
  private readonly backdrop = inject(BackdropService);

  openSomethingWithAScrim() {
    this.backdrop.show();
  }
}

Options

Prop

Type

Pitfalls

On this page