Skip to content

CheckBox

rust
pub fn checkbox(args: impl Into<CheckboxArgs>, state: Arc<CheckboxState>)

checkbox 组件是一个可以交互的复选框,允许用户选择或取消选择某个选项。

参数

  • args: impl Into<CheckboxArgs>

    此参数用于配置复选框的样式,以及注册改变时的回调函数。

  • state: Arc<CheckboxState>

    此参数用于管理复选框的状态,包括是否被选中,动画进度等。

预览

checkbox

Licensed under the MIT or Apache-2.0 at your option.