跳到主要内容

XWelcome

A welcome screen component for AI chat interfaces, displaying a greeting and suggested actions.

Source: Re-exported from @ant-design/x. Full documentation: Ant Design X Welcome

Basic Usage

import { XWelcome } from '@vef-framework-react/components';

export default function Demo() {
return (
<XWelcome
icon="/ai-avatar.png"
title="Hello, I'm your AI assistant"
description="Ask me anything about VEF Framework."
/>
);
}

API

PropTypeDefaultDescription
iconReactNodeAvatar or icon
titleReactNodeWelcome title
descriptionReactNodeSubtitle or description
extraReactNodeExtra content (top right)
promptsPromptsPropsEmbedded prompts config
styleCSSPropertiesInline style
classNamestringCSS class

For the full API, see Ant Design X Welcome docs.