Input Group

A small native layout for a field and its prefix/suffix units, icons or actions. It retains projected fields and their native form ownership; it is not a value control.

Usage

<label for="equity">Target equity (USD millions)</label>
<qds-input-group label="Target equity entry">
  <span slot="prefix" aria-hidden="true">USD</span>
  <input id="equity" name="equity" type="number" min="0" value="75">
  <button slot="suffix" type="button">Clear equity</button>
</qds-input-group>
<script type="module" src="/assets/components/input-group/qds-input-group.js"></script>

API and composition

The adjacent test.html demonstrates native values/labels, currency/percentage addons, actions, QDS composition, required/disabled state, responsive layout and dynamic slot changes. npm run verify covers native and generated behavior; both theme screenshots and contrast checks are required.

Quangular business use

Operations > New update (/#/operations/updates/new) groups a production-variance field with a delta prefix and generated Reset variance action. The form and visible review summary reflect the changed value. All reporting state is local and resets on navigation/reload.

Projected default-slot fields use border-box sizing so their padding and borders stay within the group at narrow widths. Prefix/suffix content retains its intrinsic width; keep action labels concise and label the field itself.