For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/elements/blur-view.md.

<blur-view>

Blurs whatever is behind it, like CSS backdrop-filter: blur(), which Lynx doesn't support. On iOS 26 and on web it also draws Apple's Liquid Glass material. To blur an element's own content instead, use the filter: blur() style.

Usage

src/app/now-playing.ts
import { Component } from '@angular/core';
import { LYNX_ELEMENTS } from '@blotch/angular-lynx';

@Component({
  selector: 'app-now-playing',
  imports: [LYNX_ELEMENTS],
  template: `
    <view style="width: 100%; height: 300px;">
      <image
        src="https://example.com/cover.jpg"
        style="width: 100%; height: 100%;"
      />
      <blur-view
        blur-radius="20px"
        blur-effect="light"
        style="position: absolute; left: 16px; right: 16px; bottom: 16px; height: 64px; border-radius: 16px;"
      >
        <text>Now playing</text>
      </blur-view>
    </view>
  `,
})
export class NowPlaying {}

Import LYNX_ELEMENTS in your component (see Elements).

Warning

Needs XElement in custom native apps (see Embedding).

Attributes

AttributeTypeDefaultDescription
blur-radiusstring'0px'Strength of the blur, e.g. '20px'. Every platform supports it.
blur-effect'light' | 'extra-light' | 'dark' | 'glass' | 'glass-container''light'The material: how bright the blur is, or Liquid Glass. See Materials.
blur-material'ultra-thin' | 'thin' | 'regular' | 'thick' | 'chrome'—iOS app builds only. One of UIKit's adaptive materials. See UIKit materials.
glass-style'regular' | 'clear''regular'Glass variant: frosted, or clear.
glass-tint-colorstring'transparent'Color tint over the glass.
glass-interactivebooleanfalseiOS and web. The glass reacts to touches.
glass-effect-idstring—iOS app builds only, on iOS 26 and later. Pairs two glass shapes across a change. See Glass effect IDs.
spacingnumber0iOS and web. Inside a 'glass-container', glass shapes closer than this many px merge into one.
ios-user-interface-style'light' | 'dark'—iOS (Lynx 4.1 and later) and web. Forces a light or dark material.
blur-samplingnumber6Android only. Blurs a smaller copy of the background: higher is faster but softer.
enable-auto-blurbooleantrueAndroid only. Blurs again whenever the content behind changes.
android-capture-targetstringThe page (set by AngularLynx)Android only. id, without #, of the view whose pixels get blurred. See Capture target.
experimental-update-blur-radiusboolean—Android only, experimental. Switches how the blur is refreshed.

Plus the common attributes, such as id, class and style.

"iOS app builds" means the app ng build --platform ios builds. Lynx's own <blur-view>, in Lynx Explorer and other apps, doesn't have blur-material or glass-effect-id.

Materials

  • 'light', 'extra-light' and 'dark' set how bright the blur is.
  • 'glass' draws Liquid Glass, on iOS 26 and later.
  • 'glass-container' merges the glass <blur-view> elements inside it.

UIKit materials

blur-material picks one of UIKit's adaptive materials: systemThinMaterial and so on, and the bars' systemChromeMaterial.

  • They follow ios-user-interface-style.
  • While it's set, it replaces blur-effect and blur-radius.
  • Set a blur-effect too. Lynx's own <blur-view> doesn't have blur-material. Lynx Explorer and other apps ignore it and draw the blur-effect.

Glass effect IDs

glass-effect-id pairs two glass shapes across a change, as SwiftUI's glassEffectID does.

  • When one shape with an id is removed or hidden, and one with the same id is added or shown in the same update, the second takes over from the first.
  • In the same 'glass-container', it morphs out of the first.
  • Lynx's own <blur-view> ignores it, so the second appears at once.

Capture target

On Android, android-capture-target names the view whose pixels get blurred.

  • That view needs flatten="false".
  • AngularLynx points it at the page, so that a <blur-view> inside another one still works.
  • '' restores Android's own choice.

Events

None, apart from the common events, such as bindtap.

Platform support

PlatformWhat you get
iOSBlur, every material, UIKit's adaptive materials with blur-material, and Liquid Glass on iOS 26 and later.
AndroidBlur only. AngularLynx tints it to approximate the materials and glass. Glass doesn't refract or merge.
WebAngularLynx draws the blur, the materials and the glass itself. The glass uses WebGL.
  • iOS glass animates. In the app ng build --platform ios builds, glass in a 'glass-container' materializes when it's added or shown. It dissolves when it's removed or hidden, and eases between effects, as UIKit animates its own. Lynx's own <blur-view> sets it at once.
  • Android's tint can be replaced. A background-color or box-shadow you set replaces the tint.
  • Web glass refracts the nearest ancestor that draws a background. Without WebGL, glass falls back to a plain blur.

For glass that picks the right material on each platform and follows the user's accessibility settings, use the Glass UI component.