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. |
render
How to use <HelpButtontitle="Title"render={(children, props) => (<Dialog triggerAttributes={props} className="your-class">{children}</Dialog>)}>Help text</HelpButton>