Skip to main content

ControlStateDisabledReason

A source-neutral explanation for why the bound control is disabled.

Import​

import type { ControlStateDisabledReason } from '@ngblocks/form-nodes';

When to use it​

Use for disabled explanations from useControlState(). Unlike node-specific DisabledReason, this contract does not assume the original source is a Form Nodes node.

Declaration​

type ControlStateDisabledReason = {
readonly message?: string;
};