sw-ui-background
sw-ui-background
Decorative full-bleed background that progressively reveals a high-resolution image — a blurred thumbnail shows immediately, then crossfades to the full image once it has finished loading.
The component owns two stacked layers:
- A blurred-thumbnail layer driven by a
data:URL (small, encoded inline) so something visible paints on first frame. - An
<img>that crossfades in (opacity: 0 → 1, slighttransform: scalesettle) when itsloadevent fires.
Set default to use the built-in SignalWire brand background; otherwise
supply your own thumbnail (data URL) and src (full image URL).
Designed to be slotted into <sw-ui-call-layout>’s background slot or
<sw-call-widget>’s background slot.
Class: SwUiBackground · Module: packages/web-components/src/components/UI/layout/sw-ui-background.ts
class: SwUiBackground, sw-ui-background
Fields
default
default field.
thumbnail
thumbnail field.
src
src field.
blurAmount
blurAmount field.