Skip to content

Properties

PropertiesDescription
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.

How to use render

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