Skip to content

Type Alias: RBooleanFieldValue

ts
type RBooleanFieldValue = (typeof RBooleanFieldValue)[number];

Union type of all supported boolean/ternary field values. Use this type for props, function parameters, or conditional logic based on boolean or ternary state.

Example

typescript
const handleStateChange = (state: RBooleanFieldValue) => {
  switch (state) {
    case true:
      // Handle enabled/yes/checked state
      break;
    case false:
      // Handle disabled/no/unchecked state
      break;
    case null:
      // Handle indeterminate/unknown/inherited state (ternary mode)
      break;
  }
};