---
title: "Toolbar.attributes ViewHelper <be:toolbar.attributes>"
manual: "Fluid ViewHelper Reference"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3-backend-toolbar-attributes@main"
source: "Backend/Toolbar/Attributes.rst"
modified: "2026-09-17T05:12:06+00:00"
---

# Toolbar.attributes ViewHelper `<be:toolbar.attributes>`

> [!NOTE]
> This ViewHelper is not available by default.
>
> [Import its namespace](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Fluid/UsingFluidInTypo3.html#fluid-syntax-viewhelpers-import-namespaces)
> `{namespace be=TYPO3\CMS\Backend\ViewHelpers\}` in the Fluid file or
> `xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers/"` in the opening HTML tag.

> [!WARNING]
> **Internal**
>
> This ViewHelper is marked as internal. It is subject to be changed without notice. Use at your own risk.

ViewHelper to build a "class" attribute string for use in rendered toolbar items.

Go to the source code of this ViewHelper: [Toolbar\\AttributesViewHelper.php (GitHub)](https://github.com/TYPO3/typo3/blob/main/typo3/sysext/backend/Classes/ViewHelpers/Toolbar/AttributesViewHelper.php).

## Arguments of the `<be:toolbar.attributes>` ViewHelper

-   **class**

    -   *Type:* TYPO3\\CMS\\Backend\\Toolbar\\ToolbarItemInterface
    -   *Required:* true

    Class being converted to a string for usage as id attribute
