Skip to content

Backdrop ​

Loading...

A backdrop component that narrows the user's focus to a particular element.

  • Tag: <flint-backdrop>
  • Class: FlintBackdrop

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintBackdrop } from 'flint-ui';

Usage ​

html
<flint-backdrop></flint-backdrop>

Properties ​

PropertyAttributeTypeDefaultDescription
openopenbooleanfalseWhether the backdrop is visible and active.
invisibleinvisiblebooleanfalseWhen true, the backdrop overlay is transparent.
containercontainerbooleanfalseWhen true, the backdrop is scoped to its parent container instead of the viewport.

Events ​

EventDetailDescription
flint-backdrop-close—Dispatched when the backdrop is clicked or Escape is pressed.

Slots ​

NameDescription
(default)Content to display in the foreground.

CSS Custom Properties ​

PropertyDefault
--flint-backdrop-positionfixed
--flint-backdrop-color—
--flint-backdrop-z-index—