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
status"running"
"done"
"error"
"canceled"
(optional) Display status supplied by the application. Progress never changes the status automatically.
actionLabelstring(optional) The action verb shown before the progress pill while running, e.g. Paying.
childrenstring(required) The target text while running, or the action result, e.g. Spotify Premium while running and Spotify Premium paid. when done.
agentAvatarReact.ReactNode(optional) Decorative agent avatar. Defaults to a small Aino Avatar. Use false to hide it.
targetVisualReact.ReactNode(optional) Decorative content beside the target text inside the progress pill, such as an Avatar, icon, or image.
progressnumber(optional) Progress from 0 to 100. Omit it when progress is unknown. Values are clamped; non-finite values use indeterminate progress.
undoUntilnumber(optional) Absolute Unix timestamp in milliseconds for the Undo deadline. Without it, Undo remains available until the application removes onUndo.
undoLabelstring(optional) Undo button text. Defaults to a translated text.
undoDisabledboolean(optional) Disable Undo while the application handles the request.
announceboolean(optional) Announce status, text, and Undo availability changes. Set to false for historical actions or when the application owns announcements.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.

Translations#

KeyPurpose
undoUndo button label.
undoTimeLeftLabel for the quiet countdown.
undoAvailableAnnounces availability. %action is the button label.
undoAvailableForAnnounces a time limit. %action is the button label and %seconds is the remaining time.
undoAvailableForOneSecondSingular form of the time-limit announcement.
undoAvailableUntilStable button description. %action is the button label and %time is the localized expiry time.
undoUnavailableAnnounces expiry. %action is the button label.

Status announcements reuse the Ai.Task translations. Application-specific action and result text must be translated by the application. See AI translations.

Suggest an edit