---
name: "up.Layer.prototype.mode"
area: "API"
kind: "Property"
parent: "up.Layer class"
url: "https://unpoly.com/api/up.Layer.prototype.mode"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.Layer class](https://unpoly.com/api/up.Layer.md)</nav>

# up.Layer.prototype.mode

This layer's mode which governs its appearance and behavior.

Requests targeting this layer will send the mode value as an [`X-Up-Mode`](https://unpoly.com/api/X-Up-Mode.md) header.

<nav aria-label="Guides">

- [Learn: Customizing overlays](https://unpoly.com/learn/customizing-overlays.md)

</nav>

---

## Value {#value}

### mode {#mode}

The layer mode.

Type: string

