For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/genui/openui/functions/useStateField.md.
Lynx
  • English
  • genui / openui / useStateField

    useStateField()

    function useStateField<T>(name: string, value?: T): ACTION_STEPS<ACTION_STEPS<T>>

    Resolve a named OpenUI state field against form state and reactive bindings.

    Type Parameters

    Type ParameterDefault type
    Tunknown

    Parameters

    ParameterType
    namestring
    value?T

    Returns

    ACTION_STEPS<ACTION_STEPS<T>>

    Defined in

    @lynx-js/genui/openui/src/core/hooks/useStateField.ts:12

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.