Skip to main content

euv_core/reactive/form/
trait.rs

1use super::*;
2
3/// Extension trait that exposes the hook-context factory
4/// used by `App::use_form`.
5///
6/// Splitting the factory into a trait (rather than a bare
7/// `impl HookContext`) keeps the public surface compact
8/// and lets future hooks slot into the same trait.
9pub trait HookContextFormExt {
10    /// Returns the `FormState` for the current hook
11    /// context slot.
12    fn form() -> FormState;
13}