Syntax
Parameters
An array of custom header items to display. Each item is an object that defines the properties of the header element.
items properties
A unique identifier for the header item.
The text to display for the header item.
The alignment of the header item. Possible values:
left (default) or right.A URL or data URI to an icon image to display alongside the text.
The type of header item. Possible values:
menu-item or dropdown. Default: menu-item.A callback function called when the button is clicked. Required for
menu-item type.An array of submenu items for the dropdown. Required for
dropdown type. |dropdown specific properties
When set to
true, the detail view title automatically updates to show the text of the currently selected dropdown item. When set to false (default), the detail view title displays the dropdown’s main label.Layout compatibility
fullscreen-overlay | float | custom | |
|---|---|---|---|
showSelectedAsTitle |
dropdown submenu item properties
A unique identifier for the submenu item.
The text to display for the submenu item.
The alignment of the submenu item. Possible values:
left (default) or right.A URL or data URI to an icon image to display alongside the submenu item text.
A callback function called when the submenu item is clicked.
Returns
void
Returns a
void operator.Examples
The following example creates a help button as menu item:showSelectedAsTitle property, which updates dynamically the detail view title to display the selected item’s text. In the example, when a user selects “Spanish”, the detail view title automatically updates from “Language” to “Spanish”:
Considerations
Layout support
Chat header customization is available for all form layouts:fullscreen-overlay, float, and custom.
Float layout
All custom items always appear in the side panel because Float has a fixed width of 380px.Dropdown behavior by layout
Dropdown items behave differently based on form layout:| Form layout | Dropdown behavior | Navigation pattern |
|---|---|---|
| Float | Detail view (slide-in) | Back button + Toggle button |
| Custom | Detail view (slide-in) | Back button + Toggle button |
| Fullscreen | Inline expansion | Expand and collapse in place |
Side panel visibility
The side panel appears when at least one of the following features is enabled:- Custom header items
- Chat thread list (controlled by
features.showThreadList) - Memory settings (controlled by
features.showAgentMemory)
Itens ordering
Items render in the UI in the same order they are defined in the configuration array.Navigation structure
Supports a maximum two-level hierarchy (main menu and one submenu level). Deeper nesting is not supported.Responsive design
Custom header items dynamically migrate between the header and side panel based on container width:| Viewport width | Breakpoint | Items in header | Items in side panel |
|---|---|---|---|
| < 320px | xs | 0 | All items |
| 320px - 671px | sm | 1 | Remaining items |
| 672px - 1055px | md | 2 | Remaining items |
| ≥ 1056px | lg/xl/max | 3 (maximum) | Remaining items |
The chat component uses a responsive layout with an optional side panel for rendering the chat thread list and custom header content. When implementing a custom layout, ensure the chat container height is at least 510px. In narrower viewports, the side panel collapses and the threads list container may not be rendered as expected.
- 5 custom items at 1200px width: 3 in header, 2 in side panel
- 5 custom items at 800px width: 2 in header, 3 in side panel
- 5 custom items at 400px width: 1 in header, 4 in side panel
- 5 custom items at 280px width: 0 in header, 5 in side panel
Do you need practical examples?
Learn how to apply the features available for embedded chat into your implementation with guidance and examples.

