Skip to content

Commit aaab97b

Browse files
committed
docs(spacer): add Spacer component documentation
1 parent f56fa1a commit aaab97b

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

docs/en/components/spacer.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Spacer component
3+
order: 10
4+
---
5+
6+
# Spacer
7+
8+
```rust
9+
pub fn spacer(args: impl Into<SpacerArgs>)
10+
```
11+
12+
The `spacer` component creates a resizable empty area in layouts to better control the positioning and spacing of other components. It does not render any visible content.
13+
14+
## Arguments
15+
16+
- `args: impl Into<SpacerArgs>`
17+
18+
This argument configures the size and other properties of the `spacer` component. You can use `SpacerArgsBuilder` to construct it.

docs/zhHans/components/spacer.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Spacer 组件
3+
order: 10
4+
---
5+
6+
# Spacer
7+
8+
```rust
9+
pub fn spacer(args: impl Into<SpacerArgs>)
10+
```
11+
12+
`spacer` 组件用于在布局中创建一个可调整大小的空白区域,以便更好地控制其他组件的位置和间距。不实际渲染任何内容。
13+
14+
## 参数
15+
16+
- `args: impl Into<SpacerArgs>`
17+
18+
该参数用于配置 `spacer` 组件的大小等属性。可以使用 `SpacerArgsBuilder` 来构建。

0 commit comments

Comments
 (0)