---
title: Modal Twig API
---

# Twig API

## Parameters

### `attr`

- Type: `array`

Customize the root element attributes.

### `modal_attr`

- Type: `array`

Customize the modal element attributes.

### `overlay_attr`

- Type: `array`

Customize the overlay element attributes.

### `wrapper_atrr`

- Type: `array`

Customize the wrapper element attributes.

### `container_atrr`

- Type: `array`

Customize the container element attributes.

### `content_atrr`

- Type: `array`

Customize the content element attributes.

## Blocks

### `open`

Customize the open trigger button.

### `close`

Customize the close trigger button.

### `content`

Set the modal's content.
