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

# `<cover-view>`

Draws its children above embedded native views, such as a [`<webview>`](/api/elements/webview.md), which otherwise cover all Lynx content. It works only in Lynx's desktop apps for Windows and macOS, which use Lynx's **Clay** renderer: desktop (Clay) only.

## Usage

```typescript title="src/app/browser.ts"
import { Component } from '@angular/core';
import { LYNX_ELEMENTS } from '@blotch/angular-lynx';

@Component({
  selector: 'app-browser',
  imports: [LYNX_ELEMENTS],
  template: `
    <view style="width: 100%; height: 100%;">
      <webview
        src="https://lynxjs.org"
        style="width: 100%; height: 100%;"
      ></webview>
      <cover-view
        style="position: absolute; top: 16px; right: 16px; width: 240px; height: 48px;"
      >
        <view
          style="width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.72);"
        >
          <text style="color: white;">Controls above the web view</text>
        </view>
      </cover-view>
    </view>
  `,
})
export class Browser {}
```

Import `LYNX_ELEMENTS` in your component (see [Elements](/api/angular-lynx/elements/index.md)).

:::note
iOS, Android and the web have no `<cover-view>`, so AngularLynx creates a [`<view>`](/api/elements/view.md) in its place there.

- **Its content and layout stay the same,** but it draws below a `<webview>` or `<video>` rather than above it.
- **A CSS rule that selects the element by its tag name** (`cover-view { … }`) doesn't apply there. Style it with a class instead.
  :::

## Attributes

None of its own. Position and size it like a `<view>`. It takes the [common attributes](/api/elements/view.md#attributes), such as `id`, `class` and `style`.

## Events

None, apart from the [common events](/api/elements/view.md#events), such as `bindtap`.

## Platform support

| Platform        | Support                                                                                         |
| --------------- | ----------------------------------------------------------------------------------------------- |
| Windows (Clay)  | Yes. It covers native views inside the app window, but not separate pop-up windows.             |
| macOS (Clay)    | Yes. It covers native controls inside the Lynx view, but not other windows or views outside it. |
| iOS and Android | No. It's a `<view>` there.                                                                      |
| Web             | No. It's a `<view>` there.                                                                      |

## Related

- [`<webview>`](/api/elements/webview.md)
- [`<title-bar-view>`](/api/elements/title-bar-view.md): the other desktop-only element
- [`<overlay>`](/api/elements/overlay.md): a layer above the page on iOS, Android and web
- To cover only other Lynx content, use a [`<view>`](/api/elements/view.md) with `position: fixed` instead
