---
title: "h2 · RUAL Documentation"
description: "A H2 element."
canonical: https://docs.rual.nl/block-types/state%20ui/state_h2
language: en
---

# h2

This block is part of the [`state ui`](https://docs.rual.nl/block-types/state%20ui) group and was last modified in core [`v13.0.6`](https://docs.rual.nl/core-versions/130006).

A H2 element.

- Content required `state` Integrates content or data from other elements. • Hidden when other fields are filled

- Text required `value` The text of the h2 element. • Hidden when other fields are filled

- class `uiclass` Assigns a CSS class to the element. • Hidden when unused

- style `uistyle` Applies inline CSS style to the element • Hidden when unused

- attributes `uiattributes` Adds custom attributes to the element. • Hidden when unused

- state `state` Returns the element to the frontend state.

| `h2` |
| --- |
| `header 2` |

A typical wiring for [h2](https://docs.rual.nl/block-types/state%2520ui/state_h2): [translate key](https://docs.rual.nl/block-types/translations/value_translate_key) feeds the `text` pin; the `state` out pin feeds [div](https://docs.rual.nl/block-types/state%2520ui/state_div).

![Studio canvas example for the h2 block: typical wiring for h2.](https://docs.rual.nl/canvas-examples/state_h2.png)

### Commonly used with

In production blueprints, this block is most often wired together with:

- [div](https://docs.rual.nl/block-types/state%20ui/state_div): this block feeds into it. Creates a dynamic and customizable div element on your web page.

- [translate key](https://docs.rual.nl/block-types/translations/value_translate_key): feeds into this block. Translates a given key.

### Version history

Introduced in [`v13.0.1`](https://docs.rual.nl/core-versions/130001).

Last modified in [`v13.0.6`](https://docs.rual.nl/core-versions/130006).

- [Back to `state ui`](https://docs.rual.nl/block-types/state%20ui): Return to the main group to view all sub-groups

- [Back to `state elements`](https://docs.rual.nl/block-types/state%20ui?group=state%20elements): Return to the group to view all blocks within this group
