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.

Ai.Suggestions properties#

Ai.Suggestions supports Space and HTML attributes. It is a group labeled with a translated text.

Ai.Suggestion properties#

TypeDescription
suggestionstring(required) The suggested prompt. It is shown as the text, unless children is given, and is sent to onClick.
iconIconIcon(optional) Icon shown before the text.
childrenReact.ReactNode(optional) Content shown instead of suggestion.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.

Translations#

Keynb-NOen-GBsv-SEda-DK
suggestionsForslagSuggestionsFörslagForslag
Suggest an edit