pub fn Select<T>(props: SelectProps<T>) -> impl IntoView
Expand description
A component that renders a select field from an enum.
§Required Props
- label:
impl Into<TextProp>
- The label of the input field.
- bind:
impl Into<QueryStringPart>
- The query string that binds the input field to the form data.
§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.