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.Actions properties#

TypeDescription
childrenReact.ReactNode(optional) One or more Ai.Action.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.

Ai.Action properties#

TypeDescription
selectedboolean(optional) Controlled feedback selection. When provided, exposes aria-pressed. Omit for ordinary actions such as regenerate.
labelstring(required) Label used for the tooltip and for screen readers.
iconReact.ReactNode(required) The icon to show.
ButtonVarious(optional) Other Button properties like onClick or disabled are supported. Defaults to small buttons with default-size icons and an expanded touch area.
Suggest an edit