Skip to content

Commit f56fa1a

Browse files
committed
docs(components): update documentation to clarify usage of builder methods for component arguments
1 parent 306a20a commit f56fa1a

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

docs/en/components/boxed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ boxed(
5454

5555
- `args: BoxedArgs`
5656

57-
This argument configures the `boxed` component's style, including width, height, alignment, etc. Use `BoxedArgsBuilder` to construct it.
57+
This argument configures the `boxed` component's style, including width, height, alignment, etc. You can use `BoxedArgsBuilder` to construct it.
5858

5959
- `scope_config: F`
6060

docs/en/components/button.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The `button` component is a button typically used to trigger an action. It can c
1919

2020
- `args: impl Into<ButtonArgs>`
2121

22-
This argument configures the style and behavior of the `button` component, including background color, border, shadow, corner radius, etc. Use `ButtonArgsBuilder` to construct this argument.
22+
This argument configures the style and behavior of the `button` component, including background color, border, shadow, corner radius, etc. You can use `ButtonArgsBuilder` to construct this argument.
2323

2424
- `ripple_state: Arc<RippleState>`
2525

docs/en/components/column.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ column(ColumnArgs::default(), |scope| {
3939

4040
- `args: ColumnArgs`
4141

42-
This argument configures the `column` component's style including width, height, alignment, etc. Use `ColumnArgsBuilder` to construct it.
42+
This argument configures the `column` component's style including width, height, alignment, etc. You can use `ColumnArgsBuilder` to construct it.
4343

4444
- `scope_config: F`
4545

docs/en/components/progress.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Displays a progress bar indicating the completion progress of a task. This compo
1414
## Arguments
1515

1616
- `args: ProgressArgs`
17-
This argument configures the style of the `progress` component. Use `ProgressArgsBuilder` to construct it.
17+
This argument configures the style of the `progress` component. You can use `ProgressArgsBuilder` to construct it.
1818

1919
## Preview
2020

docs/en/components/row.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ row(RowArgs::default(), |scope| {
3737

3838
- `args: RowArgs`
3939

40-
This argument configures the `row` component's style including width, height, alignment, etc. Use `RowArgsBuilder` to construct it.
40+
This argument configures the `row` component's style including width, height, alignment, etc. You can use `RowArgsBuilder` to construct it.
4141

4242
- `scope_config: F`
4343

docs/en/components/slider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The `slider` component displays an interactive slider that lets the user select
1515

1616
- `args: impl Into<SliderArgs>`
1717

18-
This argument configures the slider's style, including size, color, border, progress, etc. It is also where you register progress update callbacks. Use `SliderArgsBuilder` to construct it.
18+
This argument configures the slider's style, including size, color, border, progress, etc. It is also where you register progress update callbacks. You can use `SliderArgsBuilder` to construct it.
1919

2020
- `state: Arc<RwLock<SliderState>>`
2121

docs/en/components/switch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The `switch` component displays a toggle that can switch between on and off stat
1515

1616
- `args: impl Into<SwitchArgs>`
1717

18-
This argument configures the style of the `switch` component, including size, color, border, and other properties. Use `SwitchArgsBuilder` to construct it.
18+
This argument configures the style of the `switch` component, including size, color, border, and other properties. You can use `SwitchArgsBuilder` to construct it.
1919

2020
- `state: Arc<RwLock<SwitchState>>`
2121

docs/zhHans/components/boxed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ boxed(
5454

5555
- `args: BoxedArgs`
5656

57-
该参数用于配置 `boxed` 组件的样式,包括宽高、对齐方式等。使用 `BoxedArgsBuilder` 来构建它
57+
该参数用于配置 `boxed` 组件的样式,包括宽高、对齐方式等。可以使用 `BoxedArgsBuilder` 来构建
5858

5959
- `scope_config: F`
6060
该参数是一个闭包,用于添加子组件到 `boxed` 组件中。闭包接收一个 `&mut BoxedScope` 参数,使用它的 `child``child_weighted` 等方法来添加子组件。

docs/zhHans/components/column.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ column(ColumnArgs::default(), |scope| {
3939

4040
- `args: ColumnArgs`
4141

42-
该参数用于配置 `column` 组件的样式,包括宽高、对齐方式等。使用 `ColumnArgsBuilder` 来构建它。
42+
该参数用于配置 `column` 组件的样式,包括宽高、对齐方式等。可以使用 `ColumnArgsBuilder` 来构建它。
4343

4444
- `scope_config: F`
4545

docs/zhHans/components/progress.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub fn progress(args: impl Into<ProgressArgs>)
1414
## 参数
1515

1616
- `args: ProgressArgs`
17-
该参数用于配置 `progress` 组件的样式。使用 `ProgressArgsBuilder` 来构建它
17+
该参数用于配置 `progress` 组件的样式。可以使用 `ProgressArgsBuilder` 来构建
1818

1919
## 预览
2020

0 commit comments

Comments
 (0)