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
loading
totalVersions
accessibleDescription
accessibleDescriptionRef
accessibleName
accessibleNameRef
disabled
filter
maxlength
name
noTypeahead
open
placeholder
readonly
required
showClearIcon
showSuggestions
type
value
valueState
Slots
actions
default
icon
valueStateMessage
Events
button-click
item-click
stop-generation
version-change
change
close
input
open
select
selection-change
Methods
No methods available for this component.
CSS Parts
For more information on how to use CSS shadow parts, see Usage of CSS Shadow Parts.
CSS Custom States
No CSS custom states available for this component.