---
name: "[up-modal]"
area: "API"
kind: "HTML attribute"
parent: "up.layer module"
visibility: "deprecated"
url: "https://unpoly.com/api/up-modal"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.layer module](https://unpoly.com/api/up.layer.md)</nav>

# [up-modal]

**This feature has been deprecated**. Use `[up-layer=&quot;new modal&quot;]` instead.

Load [`unpoly-migrate.js`](https://unpoly.com/changes/upgrading.md) to polyfill deprecated features.

Clicking this link will load the destination and open the given selector in a modal overlay.

---

## Modifying attributes {#attributes}

> #### Info
>
> All modifying attributes for [`[up-layer=new]`](https://unpoly.com/api/up-layer-new.md) may also be used.

### up-modal {#up-modal}

(required)

The CSS selector that will be extracted from the response and displayed in a modal overlay.

Type: string

