Home > @uniformdev/mesh-sdk-react > VariablesProviderProps

VariablesProviderProps type

Signature:

type VariablesProviderProps<TEditVariableContext = unknown, TEditVariableCompletedContext = unknown, TEditVariableCancelledContext = unknown> = React.PropsWithChildren<{
    readOnly?: boolean;
    value: Record<string, MeshDataVariableDefinition>;
    knownUndefinedValues?: Record<string, KnownUndefinedVariableInfo>;
    onChange?: (newValue: Record<string, MeshDataVariableDefinition>) => void;
    onChangeKnownUndefinedValue?: (name: string, value: KnownUndefinedVariableInfo) => void;
    editVariableComponent?: React.ComponentType<VariableEditorProps<TEditVariableContext, TEditVariableCompletedContext, TEditVariableCancelledContext>>;
    isLoading?: boolean;
}>;

References: MeshDataVariableDefinition, VariableEditorProps