SiAiWelcomeScreenComponent documentation¶
import { SiAiWelcomeScreenComponent } from '@siemens/element-ng/chat-messages'; AI welcome screen component for displaying initial state in AI chat interfaces.
The AI welcome screen component provides an engaging initial state for AI chat interfaces, featuring a welcome message, optional prompt categories for filtering, and suggested prompts that users can click to start conversations.
The component includes:
• Welcome header with AI branding and customizable greeting
• Optional category pills for filtering prompt suggestions
• Clickable prompt suggestion cards
• Optional refresh button to regenerate suggestions
See: SiAiChatComponent for the AI chat container which uses this component
See: SiChatContainerComponent for the base chat container
Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| categories ¶ | PromptCategory[] | [] | The list of prompt categories |
| promptSuggestions ¶ | PromptSuggestion[] | [] | The list of prompt suggestions as an array, update this when the selected category changes. |
| selectedCategory ¶ | string | undefined | undefined | The currently selected category ID |
Output Properties¶
| Name | Type | Description |
|---|---|---|
| promptSelected ¶ | PromptSuggestion | Emitted when a prompt suggestion is clicked |
| selectedCategoryChange ¶ | string | undefined | The currently selected category ID |
Types Documentation¶
import type { PromptCategory } from '@siemens/element-ng/chat-messages';
import type { PromptSuggestion } from '@siemens/element-ng/chat-messages';
Represents a translatable string. This can either be a translation key, e.g. import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit. Equivalent to a normal string in usage and functionality.
Except where otherwise noted, content on this site is licensed under MIT License.