Skip to content

Welcome

使用import { Welcome } from 'vue-element-plus-x'
文档
Edit this pageChangelogFeedback

Introduction

The Welcome component can clearly communicate to users the scope of achievable intentions and expected functionality. Using appropriate welcome recommendation components can effectively reduce user learning costs and help users quickly understand and get started smoothly.

Code Examples

Basic Usage

Welcome to Element Plus X 🦋
Welcome to Element Plus X 💖
This is description information ~
Welcome to Element Plus X 💖
This is description information ~
Welcome to Element Plus X 💖
Subtitle
This is description information ~

Quickly create a welcome card

Style Variants

Welcome to Element Plus X 🦋
Welcome to Element Plus X 💖
This is description information ~
Welcome to Element Plus X 💖
This is description information ~
Welcome to Element Plus X 💖
Subtitle
This is description information ~

Quickly switch between multiple styles, currently only two: filled and borderless. Default is filled.

Background Color

Switch layout:
Welcome to Element Plus X 🦋
Welcome to Element Plus X 💖
This is description information ~
Welcome to Element Plus X 💖
This is description information ~
Welcome to Element Plus X 💖
Subtitle
This is description information ~
Welcome to Element Plus X 🦋
Welcome to Element Plus X 💖
This is description information ~
Welcome to Element Plus X 💖
This is description information ~
Welcome to Element Plus X 💖
Subtitle
This is description information ~

Set layout method ltr from left to right and rtl from right to left, more properties to control styles, see property list for details.

Custom Image

Welcome to Element Plus X 💖
A Vue 3 recreation of ant-design-x. Later will integrate AI workflow orchestration components and multi-functional md rendering components, providing the Vue development community with a useful AI component library

Convenient to replace custom images

Custom Subtitle

Welcome to Element Plus X 💖
A Vue 3 recreation of ant-design-x. Later will integrate AI workflow orchestration components and multi-functional md rendering components, providing the Vue development community with a useful AI component library

Convenient to define custom subtitle content

Theme Overrides (themeOverrides)

Override Welcome theme tokens via ConfigProvider.themeOverrides. See the full token list and template:

Toggle the overrides to see the effect.
Welcome to Element Plus X
Toggle to see spacing, radius, border and card-like feel changes.

Override Welcome --elx-* variables via ConfigProvider.themeOverrides and see changes instantly.

Properties

Property NameTypeRequiredDefaultDescription
variantstringNofilledComponent style variant (filled/borderless)
directionstringNoltrText direction (ltr/rtl)
iconstringNo-Icon URL address
titlestringNo-Main title text content
extrastringNo-Subtitle text content
descriptionstringNo-Description text content
classNamestringNo-Custom class name for outer container
rootClassNamestringNo-Custom class name for root node
classNamesobjectNo-Custom class names for each part ({ icon, title, extra, description })
styleobjectNo-Custom styles for outer container
stylesobjectNo-Custom styles for each part ({ icon, title, extra, description })
prefixClsstringNowelcomeComponent class name prefix

Slots

Slot NameParametersTypeDescription
#image-SlotCustom welcome image content
#extra-SlotCustom subtitle content

Features

  1. Currently supports filled (filled) and borderless (borderless) two visual styles through the variant property
  2. Supports direction property to control text direction
  3. Can control styles through classNames and styles with fine granularity
  4. Supports image and extra slots to extend custom content