Skip to content

Properties#

TypeDescription
childrenReact.ReactNode(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-SEda-DK
HelpButton.titleHjelpetekstHelp textHjälptextHjælpetekst
HelpButton.ariaRoleHjelp-knappHelp buttonHjälp-knappHjælp-knap

How to use render#

<HelpButton
  title="Title"
  render={(children, props) => (
    <Dialog triggerProps={props} className="your-class">
      {children}
    </Dialog>
  )}
>
  Help text
</HelpButton>
Suggest an edit