---
title: Hero Twig API
---

# Twig API

## Parameters

### `attr`

- Type: `array`

Customize the root element attributes.

### `figure`

- Type: `Figure`

Customize the figure element.

### `figure_attr`

- Type: `array`

Customize the figure element attributes.

### `content_attr`

- Type: `array`

Customize the content element attributes.

### `content_position`

- Type: `string`

Customize the content position attributes.

### `surtitle_tag`

- Type: `string`

Customize the surtitle tag.

### `surtitle_attr`

- Type: `array`

Customize the surtitle element attributes.

### `title_tag`

- Type: `string`

Customize the title tag.

### `title_attr`

- Type: `array`

Customize the title element attributes.

### `description_tag`

- Type: `string`

Customize the description tag.

### `description_attr`

- Type: `array`

Customize the description element attributes.

### `actions_attr`

- Type: `array`

Customize the actions element attributes.

## Blocks

### `before`

Set a block to old content before

### `background`

Set the background.

### `content`

Set the hero's content.

### `surtitle`

Set the surtitle content.

### `title`

Set the title content.

### `description`

Set the description content.

### `actions`

Set the actions content.

### `after`

Set a block to old content after
