Skip to content

Commit d02a733

Browse files
committed
docs(components): add preview section and example image for Surface component
1 parent 058980b commit d02a733

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

docs/en/components/surface.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,7 @@ The state used for the click ripple animation. Passing `None` disables the rippl
2828
- `child: impl FnOnce()`
2929

3030
The child component of `surface`, can be any `#[tessera]` function.
31+
32+
## Preview
33+
34+
![surface](/surface_example.png)

docs/public/surface_example.png

16.8 KB
Loading

docs/zhHans/components/surface.md

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

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

0 commit comments

Comments
 (0)