schema-components - v3.7.0
    Preparing search index...

    Function renderField

    • Render a single walked field through the resolved widget / resolver / headless pipeline. Used internally by SchemaComponent and SchemaField, exported so other React-side components (e.g. the OpenAPI renderers) can dispatch into the same fallback chain.

      Thin React-flavoured wrapper around the framework-agnostic dispatchRenderField (from core/renderField): it constructs a React-shaped DispatchConfig (widget lookup against the instance → context → global chain, recursion sentinel as a React <fieldset>, fallback as a <span>-wrapped value) and forwards the call.

      Parameters

      • tree: WalkedField
      • value: unknown
      • onChange: (v: unknown) => void
      • userResolver: ComponentResolver | undefined
      • renderChild: (
            tree: WalkedField,
            value: unknown,
            onChange: (v: unknown) => void,
            pathSuffix?: string,
        ) => ReactNode
      • path: string
      • OptionalinstanceWidgets: WidgetMap
      • OptionalcontextWidgets: WidgetMap
      • depth: number = 0

      Returns ReactNode