euv-ui 0.17.0

Reusable UI component library for the euv framework, providing buttons, cards, modals, inputs, and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

/// Extension trait that exposes the hook-context factory
/// used by `App::use_form`.
///
/// Splitting the factory into a trait (rather than a bare
/// `impl HookContext`) keeps the public surface compact
/// and lets future hooks slot into the same trait.
pub trait HookContextFormExt {
    /// Returns the `FormState` for the current hook
    /// context slot.
    ///
    /// # Returns
    ///
    /// - `FormState` - A `FormState` value.
    fn form() -> FormState;
}