Overview
This article covers the drag and drop interactions with the Generative AI. The drag and drop works in both ways - it is possible to drop files into the Generative AI prompt or to drag files from the AI response.
From the AI Container
Some of the generated responses can be dragged to the host application/environment. Those items get highlighted on mouse hover to indicate that they can be dragged from the AI Container.
Interaction States
On Mouse Hover
On Mouse Drag
When you drag the generated content, it appears as a disabled element.
Recommended
- Ensure the generated content that can be dragged has an appropriate visual indication
Not recommended
- Avoid making all visual elements in the AI Container draggable.
Into the AI Container
Interaction States
Normal State
Hover State
Recommended
- Highlight only the areas that accept file uploads.
- Change the mouse cursor when dragging files
Not recommended
- Avoid the area that accepts file uploads has an appropriate size.
Resources
Design
AI Drag and Drop - Visual Design Specification
Code Samples
UI5 Demo Kit
Web Components
Fundamental Styles