Use the Message component for feedback notifications
The
Message component is used to provide feedback after an active user operation. It differs from Notification, which is intended for passive system-level alerts. It supports four types: success, error, info, and warn.function App() {
return (
<div className="ykui-demo-row">
<Message type="success" message="成功提示的文案" />
<Message type="error" message="错误提示的文案" />
<Message type="info" message="消息提示的文案" />
<Message type="warn" message="警告提示的文案" />
</div>
);
}