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

    Type Alias FormFieldStateProps<T>

    Dynamic props passed to input components.

    type FormFieldStateProps<T = any> = {
        getStatus: () => FormFieldStatus;
        getValue: () => T | undefined;
        onBlur: (event?: FocusEvent<HTMLElement>) => void;
        onRevert: () => void;
        onValueChange: (type: SchemaAST.AST, value: T) => void;
    }

    Type Parameters

    • T = any
    Index

    Properties

    getStatus: () => FormFieldStatus
    getValue: () => T | undefined
    onBlur: (event?: FocusEvent<HTMLElement>) => void

    Marks the field touched, so its error may show; the event is not read.

    onRevert: () => void

    Drops the field's uncommitted edit (Escape), so it shows the committed value again.

    onValueChange: (type: SchemaAST.AST, value: T) => void