@dxos/react-ui-form
    Preparing search index...

    Type Alias FormFieldRendererProps<T>

    FormFieldRendererProps: {
        action?: FormFieldAction;
        autoFocus?: boolean;
        collaborative?: boolean;
        db?: Database.Database;
        description?: string;
        format?: Format.TypeFormat;
        icon?: string;
        indeterminate?: boolean;
        jsonPath?: string;
        label: string;
        max?: number;
        min?: number;
        path?: readonly (string | number)[];
        placeholder?: string;
        presentation?: FormPresentation;
        readonly?: boolean;
        required?: boolean;
        step?: number;
        type: SchemaAST.AST;
    } & FormFieldStateProps<T>

    Props passed to input components.

    Type Parameters

    • T = any

    Type declaration

    • Optionalaction?: FormFieldAction
    • OptionalautoFocus?: boolean
    • Optionalcollaborative?: boolean

      Edited through the binding in the form's extensions rather than handing back values (see FormFieldOverride).

    • Optionaldb?: Database.Database

      Database the form is editing against; populated for fields whose value is an ECHO object/Ref.

    • Optionaldescription?: string

      Human-readable description (from the schema's description annotation). Rendered as visible text only when the resolved presentation opts in; otherwise it falls back to the input placeholder.

    • Optionalformat?: Format.TypeFormat
    • Optionalicon?: string

      The field's glyph (see FormFieldOverride.icon).

    • Optionalindeterminate?: boolean

      The field shows no value until it is edited (see FormFieldOverride.indeterminate).

    • OptionaljsonPath?: string

      Dotted JSON path of this field within the form values (e.g. runtime.client.storage.persistent).

    • label: string
    • Optionalmax?: number
    • Optionalmin?: number

      Numeric bounds and step from the caller's override, applied on top of the schema's.

    • Optionalpath?: readonly (string | number)[]

      Key path of this field within the form values.

    • Optionalplaceholder?: string
    • Optionalpresentation?: FormPresentation

      Presentation mode for the field (full/compact/inline/static); see FormPresentation.

    • Optionalreadonly?: boolean
    • Optionalrequired?: boolean

      Whether the field is required AND still unfilled; surfaces a trailing asterisk on the label.

    • Optionalstep?: number
    • type: SchemaAST.AST