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 '@getufy/flint-ui'; // auto-registers all
// or
import { FlintBackdrop } from '@getufy/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&#123; open: false &#125;Dispatched when the backdrop is clicked or Escape is pressed. detail: &#123; open: false &#125;

Slots ​

NameDescription
(default)Content to display in the foreground.

CSS Parts ​

NameDescription
baseThe component's base wrapper element.
contentThe content container.

CSS Custom Properties ​

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