Skip to content

Commit e190749

Browse files
committed
docs(components/button): add preview section and example GIF
Add a "Preview" section to the Button component documentation in English and Chinese and include the demo GIF used by the docs.
1 parent d02a733 commit e190749

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

docs/en/components/button.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@ The state for the click ripple animation. You must provide a valid `RippleState`
2727

2828
- `child: impl FnOnce()`
2929

30-
The child component of the `button`, which can be any `#[tessera]` function.
30+
The child component of the `button`, which can be any `#[tessera]` function.
31+
32+
## Preview
33+
34+
![button](/button_example.gif)

docs/public/button_example.gif

330 KB
Loading

docs/zhHans/components/button.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,7 @@ pub fn button(
2828
- `child: impl FnOnce()`
2929

3030
此参数为`button`组件的子组件,可以是任何`#[tessera]`函数。
31+
32+
## 预览
33+
34+
![button](/button_example.gif)

0 commit comments

Comments
 (0)