Skip to content

Properties

PropertyTypeDescription
childrenReact.Node(optional) the content to show.
titlestring(optional) the content title. Defaults to Hjelpetekst (HelpButton.title).
iconstring
React.ReactNode
(optional) To be included in the button. Primary Icons can be set as a string (e.g. icon="information"), other icons should be set as React elements.
renderfunction(optional) accepts a function that returns a valid React Element. See example below.
ButtonVarious(optional) All button properties.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.

Translations

More info about translations can be found in the general localization and Eufemia Forms localization docs.

Keynb-NOen-GBsv-SE (beta)
HelpButton.titleHjelpetekstHelp textHjälptext
HelpButton.aria_roleHjelp-knappHelp buttonHjälp-knapp

How to use render

Code Editor
<HelpButton
  title="Title"
  render={(children, props) => (
    <Dialog triggerAttributes={props} className="your-class">
      {children}
    </Dialog>
  )}
>
  Help text
</HelpButton>