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#
| Type | Description | |
|---|---|---|
children | React.ReactNode | (optional) One or more Ai.Action. |
Space | string object | (optional) Spacing properties like top or bottom are supported. |
Ai.Action properties#
| Type | Description | |
|---|---|---|
selected | boolean | (optional) Controlled feedback selection. When provided, exposes aria-pressed. Omit for ordinary actions such as regenerate. |
label | string | (required) Label used for the tooltip and for screen readers. |
icon | React.ReactNode | (required) The icon to show. |
Button | Various | (optional) Other Button properties like onClick or disabled are supported. Defaults to small buttons with default-size icons and an expanded touch area. |