Input
<ui5-ai-input> | Since 2.16.0info
The @ui5/webcomponents-ai package is under active development and considered experimental. Component APIs are subject to change.
The ui5-ai-input component extends the standard ui5-input with AI Writing Assistant capabilities.
Structure
The ui5-ai-input consists of the following main parts:
- Input Field – Inherits all standard Input behaviors.
 - AI Action Button – Appears when focused or loading, providing access to AI-related actions or stopping generation.
 
The component automatically determines which elements to render based on its internal state:
- The AI Button is only shown when there are available 
actions. - The version navigation appears only when 
totalVersions > 1. 
Keyboard Support
- Shift + F4 — Opens the AI menu.
 - Ctrl + Shift + Z / Y — Navigates backward/forward between AI-generated versions.
 
ES6 Module Import
import "@ui5/webcomponents-ai/dist/Input.js";
Basic Sample
Properties
currentVersion
totalVersions
loading
Slots
actions
Events
button-click
stop-generation
version-change
Methods
No methods available for this component.
CSS Parts
No CSS parts available for this component.