🚀 Type-safe, reactive form handling library for Leptos applications. Production-ready with 100% test success rate, cross-browser compatibility, and comprehensive validation. Built with Rust/WASM for high performance.
//! Field value hook
//!//! This module provides the `use_field_value` hook for getting field values.
usecrate::core::traits::Form;usecrate::core::types::FieldValue;usecrate::core::FormHandle;useleptos::prelude::*;/// Hook for getting a field value
pubfnuse_field_value<T: Form +PartialEq+Clone+Send+Sync>(form_handle:&FormHandle<T>,
field_name:&str,
)->Memo<FieldValue>{let form_handle = form_handle.clone();let field_name = field_name.to_string();Memo::new(move|_|{
form_handle
.get_field_value(&field_name).unwrap_or(FieldValue::String(String::new()))})}