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.

Experimental: The AI extension and its component APIs may change in the future. Please give us feedback on your experience with them.

Properties#

TypeDescription
titlestring(required) The question heading.
childrenReact.ReactNode(required) Explanation or details of the decision.
status"pending"
"required"
"confirmed"
"declined"
"expired"
(optional) Controlled decision state. Completed or expired decisions disable both buttons.
confirmLabelstring(optional) Confirm button text. Defaults to a translated Yes.
declineLabelstring(optional) Decline button text. Defaults to a translated No.
disabledboolean(optional) Disable both buttons, for example while saving a decision.
announceboolean(optional) Announce decision-state changes politely. Disable when the application already announces the outcome.
levelnumber(optional) Heading level.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.

Translations#

KeyPurpose
confirmationYesDefault confirm button label.
confirmationNoDefault decline button label.
confirmationPendingAccessible label for a pending decision.
confirmationRequiredRequired status label.
confirmationConfirmedConfirmed status label.
confirmationDeclinedDeclined status label.
confirmationExpiredExpired status label.
Suggest an edit