Skip to content
Latestv1.0.60

AiWelcome

AiWelcome is a component designed for the start page of AI chat conversations, providing a friendly first impression and interaction guide through beautiful gradients and glassmorphism design.

Basic Usage

Display Logo, title, and a list of suggested Prompts.

Basic Usage

Custom Icons and Slots

You can customize the Logo icon or completely customize the header content through slots.

Custom Icons and Slots

Use in Nuxt

This component fully supports Nuxt 3/4. In Nuxt projects, the component will be automatically imported.

For detailed configuration, please see Nuxt Integration.

Theme Variables

Variable NameDescriptionDefault Value
--yh-ai-welcome-paddingContainer paddingvar(--yh-spacing-xl)
--yh-ai-welcome-max-widthMax width800px
--yh-ai-welcome-primary-gradientBrand gradient colorlinear-gradient(135deg, var(--yh-color-primary) 0%, #a855f7 100%)
--yh-ai-welcome-card-bgSuggestion card backgroundvar(--yh-bg-color-overlay)
--yh-ai-welcome-card-radiusCard border radiusvar(--yh-border-radius-base)

API

Props

NameDescriptionTypeDefault
titleTitle textstring''
descriptionDescription textstring''
suggestionsSuggested items listAiSuggestion[][]
showIconWhether to show the iconbooleantrue
iconIcon namestring'sparkles'

AiSuggestion Item

NameDescriptionType
iconIcon namestring
titleSuggestion titlestring
descriptionDetailed descriptionstring
promptCommand text passed when clickedstring

Events

Event NameDescriptionCallback Parameters
selectTriggered when a suggestion card is clicked(item: AiSuggestion)

Slots

Slot NameDescription
defaultBottom custom content
iconCustom Logo
titleCustom Title
descriptionCustom Description

Released under the MIT License.