Skip to content

Some properties provide flexibility for specific integrations. Follow the component's usage guidance. Customizations beyond the documented patterns need a use case approved by DNB UX. Read about intended use and customization.

Properties#

TypeDescription
content"success"
"error"
React.ReactNode
(optional) The content to show. If not given, the children will be shown. Can be success, error or a custom content.
successobject(optional) Texts and button settings for the success content. See the success object below.
errorobject(optional) Texts for the error content. See the error object below.
idstring
function
object
React.Context
(optional) Unique id for connecting with Form.InfoOverlay.setContent. Defaults to the id of the surrounding Form.Handler.
childrenReact.ReactNode(required) The content to show when content is not set.

Error object#

The keys of the error property:

TypeDescription
titleReact.ReactNode(optional) The title of the component.
descriptionReact.ReactNode(optional) The description of the component.
cancelButtonReact.ReactNode(optional) The text of the cancel button.
retryButtonReact.ReactNode(optional) The text of the retry button.

Success object#

The keys of the success property:

TypeDescription
titleReact.ReactNode(optional) The title of the component.
descriptionReact.ReactNode(optional) The description of the component.
buttonTextReact.ReactNode(optional) The text of the button.
buttonHrefstring(optional) The href of the button.
buttonClickHandlerfunction(optional) The click handler of the button.

Translations#

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

Keynb-NOen-GBsv-SEda-DK
InfoOverlayError.titleBeklager, noe gikk galtSorry, something went wrongTyvärr, något gick felBeklager, noget gik galt
InfoOverlayError.descriptionPrøv igjen eller ta kontakt med oss om feilen vedvarer.Please try again or contact us.Försök igen eller kontakta oss om felet kvarstår.Prøv igen eller kontakt os, hvis fejlen fortsætter.
InfoOverlayError.cancelButtonTilbakeBackTillbakaTilbage
InfoOverlayError.retryButtonPrøv igjenTry againFörsök igenPrøv igen
InfoOverlayError.retryingTextPrøver på nytt...Retrying...Försöker igen...Prøver igen...
InfoOverlaySuccess.titleTakk skal du haThank youTackTak
InfoOverlaySuccess.descriptionVi har mottatt din informasjon.We have received your information.Vi har mottagit din information.Vi har modtaget dine oplysninger.
InfoOverlaySuccess.buttonTextTilbake til forsidenBack to homepageTillbaka till startsidanTilbage til forsiden
Suggest an edit