Input

Single-line text input with controlled value, placeholder, label, description, native types, engineering input, and disabled state.

Usage Notes

Label and unit

label renders as a clickable native label; unit renders as trailing text, suitable for voltage, resistance, frequency, etc.

namespace: "doc_input_label_unit",
  layout: {
    "input:voltage": {
      label: "Voltage",
      value: "3.3",
      unit: "V",
      description: "Supply rail"
    }
  }
}

Disabled state

namespace: "doc_input_disabled_diff",
  layout: {
    "row:diff": {
      "input:enabled": {
        value: "Editable",
        placeholder: "Type here"
      },
      "input:disabled": {
        value: "Disabled",
        disabled: true
      }
    }
  }
}

Engineering input

type: "engineering" uses a text input (not the native number type). Component state retains the raw string and additionally exposes parsed results:

namespace: "doc_input_engineering",
  layout: {
    "input:resistance": {
      type: "engineering",
      value: "4.7kΩ"
    },
    "stat:parsed": {
      label: "Parsed value",
      $value: "resistance.valid ? resistance.number : 'Invalid'",
      $unit: "resistance.unit"
    }
  }
}

Supports scientific notation and SI prefixes: p, n, u, µ, m, k, K, M, meg, G, T. Units are captured but not converted across physical dimensions.

API Reference