# Welcome
# Features
The Welcome component is used to display the application's welcome screen and introductory information, supporting the following features:
- Customizable icon, title, and description content
- Switch between left and right layout directions
- Provides bordered and borderless style variants
- Extendable extra content area
- Flexible style customization capabilities
# Usage Examples
# Basic Usage
Basic usage of the Welcome component, displaying an icon, title, and description.
Copy
# Different Style Variants
Supports two style variants: filled
and borderless
.
Copy
# Layout Direction
Supports both left-to-right (ltr) and right-to-left (rtl) layout directions.
Copy
# Extra Content Area
Add extra content through the extra
attribute or slot.
Copy
# Custom Icon
Customize the icon area content through the image
slot.
Copy
# Style Customization
Use the styleConfig
and styles
attributes to customize the component's style.
Copy
# Attributes
Attribute | Description | Type | Options | Default |
---|---|---|---|---|
className | Custom class name | String | — | '' |
rootClassName | Custom class name for the root element | String | — | '' |
variant | Component style variant | String | filled / borderless | 'filled' |
direction | Layout direction | String | ltr / rtl | 'ltr' |
classNames | Custom class name object for different parts | Object | — | {} |
icon | Icon image address | String | — | '' |
title | Title text | String | — | '' |
extra | Extra content | String/Object | — | '' |
description | Description text | String | — | '' |
styleConfig | Component container style | Object | — | {} |
styles | Custom style object for different parts | Object | — | {} |
# Slots
Slot Name | Description |
---|---|
image | Custom icon area content |
extra | Custom extra content area |
← Conversations Prompts →