> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# `<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

```typescript title="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](/api/angular-lynx/elements/index.md)).

:::warning
Needs [XElement](/guide/glossary.md#xelement) in custom native apps (see [Embedding](/guide/embedding/index.md)).
:::

## Attributes

| Attribute                         | Type                                                                 | Default                       | Description                                                                                                                  |
| --------------------------------- | -------------------------------------------------------------------- | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `blur-radius`                     | `string`                                                             | `'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](#materials).                                          |
| `blur-material`                   | `'ultra-thin' \| 'thin' \| 'regular' \| 'thick' \| 'chrome'`         | —                             | iOS app builds only. One of UIKit's adaptive materials. See [UIKit materials](#uikit-materials).                             |
| `glass-style`                     | `'regular' \| 'clear'`                                               | `'regular'`                   | Glass variant: frosted, or clear.                                                                                            |
| `glass-tint-color`                | `string`                                                             | `'transparent'`               | Color tint over the glass.                                                                                                   |
| `glass-interactive`               | `boolean`                                                            | `false`                       | iOS and web. The glass reacts to touches.                                                                                    |
| `glass-effect-id`                 | `string`                                                             | —                             | iOS app builds only, on iOS 26 and later. Pairs two glass shapes across a change. See [Glass effect IDs](#glass-effect-ids). |
| `spacing`                         | `number`                                                             | `0`                           | iOS 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-sampling`                   | `number`                                                             | `6`                           | Android only. Blurs a smaller copy of the background: higher is faster but softer.                                           |
| `enable-auto-blur`                | `boolean`                                                            | `true`                        | Android only. Blurs again whenever the content behind changes.                                                               |
| `android-capture-target`          | `string`                                                             | The page (set by AngularLynx) | Android only. `id`, without `#`, of the view whose pixels get blurred. See [Capture target](#capture-target).                |
| `experimental-update-blur-radius` | `boolean`                                                            | —                             | Android only, experimental. Switches how the blur is refreshed.                                                              |

Plus the [common attributes](/api/elements/view.md#attributes), such as `id`, `class` and `style`.

"iOS app builds" means the app [`ng build --platform ios`](/guide/building-for-production.md) builds. Lynx's own `<blur-view>`, in [Lynx Explorer](/guide/glossary.md#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](/api/elements/view.md#events), such as `bindtap`.

## Platform support

| Platform | What you get                                                                                                 |
| -------- | ------------------------------------------------------------------------------------------------------------ |
| iOS      | Blur, every material, UIKit's adaptive materials with `blur-material`, and Liquid Glass on iOS 26 and later. |
| Android  | Blur only. AngularLynx tints it to approximate the materials and glass. Glass doesn't refract or merge.      |
| Web      | AngularLynx 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](/dolan/glass.md) UI component.

## Related

- [CSS on Lynx](/guide/styling/index.md): `filter`, `opacity` and the other visual effects
- [Main-thread scripts](/guide/main-thread/index.md): drag a glass shape on the same frame as the finger
