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#
| Type | Description | |
|---|---|---|
suggestion | string | (required) The suggested prompt. It is shown as the text, unless children is given, and is sent to onClick. |
icon | IconIcon | (optional) Icon shown before the text. |
children | React.ReactNode | (optional) Content shown instead of suggestion. |
Space | string object | (optional) Spacing properties like top or bottom are supported. |
Translations#
| Key | nb-NO | en-GB | sv-SE | da-DK |
|---|---|---|---|---|
suggestions | Forslag | Suggestions | Förslag | Forslag |