Skip to content

Commit 933efcd

Browse files
committed
docs: fix sender docs and optimize components page
1 parent 480c9b2 commit 933efcd

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

docs/docs/en/components/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Components
22

3-
> This page is not complete yet.
3+
MateChat React provides a simple, flexible, and extensible React AI component library for building modern front-end applications in AI conversation scenarios.
4+
MateChat based on DevUI Design, provides a rich set of components and features, allows developers to easily integrate conversation AI into their applications. What's more, MateChat also provides a unified AI scheduling module, compatible with OpenAI, SSE, etc.

docs/docs/en/components/interaction/bubble.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Bubble } from "@matechat/react";
99

1010
export default function () {
1111
return (
12-
<div className="flex">
12+
<div className="flex flex-col w-full">
1313
<Bubble text="Hello, how can I help you?" />
1414
</div>
1515
);

docs/docs/zh/components/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# 组件
22

3-
> 此页面还在施工中。
3+
MateChat React 致力于提供一个简单、灵活、可扩展的 React AI 组件库,用于构建现代的 AI 对话场景下的前端应用程序。
4+
MateChat 基于 DevUI Design 设计,提供了丰富的组件和功能,允许开发者轻松将对话 AI 集成到他们的应用中。同时,MateChat 还提供了统一的 AI 调度模块,兼容 OpenAI、SSE 等通讯协议,无缝接入复杂的 AI 交互场景。

docs/docs/zh/components/interaction/bubble.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Bubble } from "@matechat/react";
99

1010
export default function () {
1111
return (
12-
<div className="flex">
12+
<div className="flex flex-col w-full">
1313
<Bubble text="你好,有什么我可以帮助你的吗" />
1414
</div>
1515
);

docs/docs/zh/components/interaction/sender.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 输入框
1+
# Sender 输入框
22

33
输入框是一个 textarea 组件,用于输入和发送消息。
44

@@ -11,7 +11,7 @@ import { useCallback, useState } from "react";
1111
export default function () {
1212
return (
1313
<div className="w-full p-1">
14-
<Sender />
14+
<Sender placeholder="请输入消息" />
1515
</div>
1616
);
1717
}

0 commit comments

Comments
 (0)