Function Checkbox

Source
pub fn Checkbox<T>(props: CheckboxProps<T>) -> impl IntoView
where T: Datatype<Inner = bool>,
Expand description

A component that renders a checkbox.

§Required Props

§Optional Props

  • value: impl Into<MaybeProp<T>>
    • The initial value of the input field.
  • change: [impl Into<Callback<Result<T, T::Err>, ()>>](Callback<Result<T, T::Err>, ()>)
    • A write signal that is updated with the parsed value of the input field.
  • error: impl Into<MaybeProp<TextProp>>
    • Set a custom error message for the input field.