Note that the input is always given back to you as a String no matter the type. When using a number input, you may want to convert the String like this: str::parse::<f64>(v.as_str()).ok() to receive an Option<f64>, being None on invalid input.
An input can be used without providing the set prop. You will not be notified about changes to the input value. This can be useful when you know that the input will always be disabled and you never expect changes.
The set prop, providing you with new values whenever the inputs content changes, accepts an Out<String>, allowing you to either provide a WriteSignal whose value is set when the input changes or a custom Callback called whenever the input changes, allowing you to handle values by yourself if required.
You can define the set prop in one of the following ways.