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. Furthermore, the package supports Horizon themes only.
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
disabled
placeholder
readonly
required
noTypeahead
type
value
valueState
name
showSuggestions
maxlength
accessibleName
accessibleNameRef
accessibleDescription
accessibleDescriptionRef
showClearIcon
open
filter
Slots
actions
default
icon
valueStateMessage
Events
button-click
item-click
stop-generation
version-change
change
input
select
selection-change
open
close
Methods
No methods available for this component.