Add Multi-Value List Text/Integer Prop Support (UI)
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3581110. -->
Reported by: [vipin.mittal18](https://www.drupal.org/user/319716)
Related to !795
>>>
<h3>Summary</h3>
<p> Add support for <strong>List (Text)</strong> and <strong>List (Integer)</strong> prop types in Drupal Canvas, enabling builders to select predefined options in the UI based on backend configuration, following the existing multi-value prop patterns.</p>
<h3>Problem / Motivation</h3>
<p> Currently, while multi-value props are supported for several types, there is no consistent UI handling for List-based props (Text/Integer) where options are predefined.</p>
<p>Builders defining List props in code components expect:
</p><ul>
<li>A clear selection UI in Canvas</li>
<li>Enforcement of cardinality constraints</li>
<li>Consistent behavior aligned with other multi-value prop types</li>
</ul>
<p>Without this, List props lack usability and consistency in the Canvas editor experience.</p>
<h3>Scope</h3>
<h4>In Scope</h4>
<ul>
<li>Support for:
<ul>
<li>List (Text)</li>
<li>List (Integer)</li>
</ul>
</li>
<li>Rendering predefined options in the UI (as configured in the code component)</li>
<li>Enforcing cardinality constraints:
<ul>
<li>Cardinality = 1 → Single selection</li>
<li>Cardinality > 1 → Multi-selection (limited)</li>
<li>Cardinality = unlimited → No selection limit</li>
</ul>
</li>
<li>UI behavior aligned with existing multi-value prop implementations</li>
<li>Read-only interaction model (selection only)</li>
</ul>
<h4>Out of Scope</h4>
<ul>
<li>Creating, editing, or deleting options from the UI (no CRUD)</li>
<li>No backend schema or storage changes are included.</li>
</ul>
issue