pub fn Radio<T>(props: RadioProps<T>) -> impl IntoViewExpand description
A component that renders radio buttons 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.