Skip to content

Commit 2571fb6

Browse files
ztygodfu050409
andauthored
docs(bubble): add docs for bubble component (#43)
文档中组件演示添加 bubble 如下: ![image](https://github.com/user-attachments/assets/f2ab7d3a-c0cb-4080-8fed-19f3449c0745) ![image](https://github.com/user-attachments/assets/33c7aab6-1494-4eda-9a59-c3023a220923) --------- Co-authored-by: 苏向夜 <[email protected]> Co-authored-by: 苏向夜 <[email protected]>
1 parent 0274090 commit 2571fb6

File tree

17 files changed

+5291
-30
lines changed

17 files changed

+5291
-30
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ We welcome all kinds of contributions:
102102

103103
## Contact Us
104104

105-
| MateChat React Chat Group | SOA Chat Group |
106-
| :------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------: |
105+
| MateChat React Chat Group | SOA Chat Group |
106+
| :------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------: |
107107
| [<img alt="MateChat React Chat Group" src="./assets/matechat-react-qq-group.jpg" />](https://qm.qq.com/q/aMLehEXzBm) | [<img alt="SOA Chat Group" src="./assets/soa-qq-group.jpg" />](https://qm.qq.com/q/lOocKriX74) |
108108

109109
## License

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ export default function BubbleDemo() {
116116

117117
## License
118118

119-
该项目已获得 [MIT 许可](./LICENSE).
119+
该项目已获得 [MIT 许可](./LICENSE).

docs/docs/en/_meta.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
[
2+
{
3+
"text": "components",
4+
"link": "/components",
5+
"activeMatch": "^/components"
6+
},
27
{
38
"text": "Releases",
49
"items": [

docs/docs/en/components/_meta.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[
2+
{
3+
"type": "dir",
4+
"name": "interaction",
5+
"label": "interaction",
6+
"collapsible": true,
7+
"collapsed": false
8+
}
9+
]

docs/docs/en/components/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Components
2+
3+
> This page is not complete yet.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Bubble
2+
3+
Bubble components used to contain conversation content, supporting transparent background, custom loading animation, etc.
4+
5+
## Examples
6+
7+
```tsx preview
8+
import { Bubble } from "@matechat/react";
9+
10+
export default function () {
11+
return (
12+
<div className="flex">
13+
<Bubble text="Hello, how can I help you?" />
14+
</div>
15+
);
16+
}
17+
```
18+
19+
## Properties
20+
21+
<API moduleName="bubble" />

docs/docs/zh/_meta.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
[
2+
{
3+
"text": "components",
4+
"link": "/zh/components",
5+
"activeMatch": "^/zh/components"
6+
},
27
{
38
"text": "版本",
49
"items": [

docs/docs/zh/components/_meta.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[
2+
{
3+
"type": "dir",
4+
"name": "interaction",
5+
"label": "interaction",
6+
"collapsible": true,
7+
"collapsed": false
8+
}
9+
]

docs/docs/zh/components/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 组件
2+
3+
> 此页面还在施工中。
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Bubble 气泡
2+
3+
Bubble 组件用于承载对话内容的气泡组件,支持透明背景、自定义加载动画等。
4+
5+
## 代码演示
6+
7+
```tsx preview
8+
import { Bubble } from "@matechat/react";
9+
10+
export default function () {
11+
return (
12+
<div className="flex">
13+
<Bubble text="你好,有什么我可以帮助你的吗" />
14+
</div>
15+
);
16+
}
17+
```
18+
19+
## 参数
20+
21+
<API moduleName="bubble" />

0 commit comments

Comments
 (0)