Skip to content

Help button

The help button provides immediate, contextual assistance via a popover.

Usage

It is designed to help users understand specific actions or features on the current page without navigating away. The button uses the element-help icon and is typically placed near form labels or interactive elements that require clarification.

Help button

When to use

  • When users may need clarification about a specific field, feature, or action.
  • In forms, dashboards, or complex workflows.

Best practices

  • Keep content short and focused on the immediate context.
  • Include links to more detailed information only when necessary.
  • Position the help button to the right of the element it supports (or left for RTL languages).
  • Avoid overusing help buttons across a page. When more complex or detailed information is required, refer to the other help patterns.

Design

Elements

Help button elements

  1. Help button, 2. Popover

States

Help button states

Code

Usage

import { SiHelpButtonComponent } from '@siemens/element-ng/help-button';

@Component({
  imports: [SiHelpButtonComponent, ...]
})

SiHelpButtonComponent API Documentation

import { SiHelpButtonComponent } from '@siemens/element-ng/help-button';

This component creates a help button that shows contextual help in a popover.

Example:

<button
  type="button"
  si-help-button
  siHelpTitle="Help for problem"
  siHelpContent="Use your imagination to solve this problem."
>
  <!-- This text is only visible to screen reader. Provide a meaningful text, not only "help" -->
  How to solve the problem?
</button>

Input Properties

Name Type Default Description
siHelpContent
TranslatableString | TemplateRef<unknown> | undefined

The popover text to be displayed

siHelpContext
unknown undefined

The context for the attached template

siHelpPlacement
"start" | "end" | "bottom" | "auto" | "top" 'auto'

The placement of the popover. One of 'top', 'start', 'end', 'bottom'

siHelpTitle
TranslatableString | undefined undefined

The title to be displayed on top for the popover

Types Documentation

Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit. Equivalent to a normal string in usage and functionality.


Except where otherwise noted, content on this site is licensed under MIT License.