nova_forms/components/group.rs
use leptos::*;
use crate::QueryString;
/// A component that binds all of its contents to a part of the form data.
#[component]
pub fn Group(
/// The query string that binds the group to the form data.
#[prop(into)] bind: QueryString,
/// The children of the group.
children: Children
) -> impl IntoView {
let (qs, form_data) = bind.form_context();
view! {
<Provider value=qs>
<Provider value=form_data>{children()}</Provider>
</Provider>
}
}