shield-bootstrap 0.3.0

Bootstrap style for Shield.
Documentation
use leptos::prelude::*;
use shield_leptos::Call;

use crate::leptos::input::FormInput;

#[component]
pub fn Form(action_id: String, form: shield::Form) -> impl IntoView {
    let call = ServerAction::<Call>::new();

    view! {
        <ActionForm action=call>
            <input name="action_id" type="hidden" value=action_id />

            {form.inputs.into_iter().map(|input| view! {
                <FormInput input={input} />
            }).collect_view()}
        </ActionForm>
    }
}