Properties
Properties | Description |
---|---|
children or modal_content | (optional) the content to show. |
title | (optional) the content title. Defaults to Hjelpetekst (HelpButton.title). |
icon | (optional) the icon defaults to question . |
render | (optional) accepts a function that returns a valid React Element. See example below. |
Button | (optional) accepts all Button properties, if children is not given. |
Translations
More info about translations can be found in the general localization and Eufemia Forms localization docs.
Key | nb-NO | en-GB | en-US |
---|---|---|---|
HelpButton.title | Hjelpetekst | Help text | Help text |
HelpButton.aria_role | Hjelp-knapp | Help button | Help button |
render
How to use Code Editor
<HelpButton title="Title" render={(children, props) => ( <Dialog triggerAttributes={props} className="your-class"> {children} </Dialog> )} > Help text </HelpButton>