Display SDC prop `description` as the form element description in component instances form
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3492366. --> Reported by: [luke.leber](https://www.drupal.org/user/3509746) Related to !258 >>> <h3 id="overview">Overview</h3> <p>It does not appear that the <code>description</code> of a prop is used in the corresponding form element.</p> <p>Given</p> <pre>$schema: 'https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json'<br>name: My SDC<br>status: stable<br>group: Molecule/My SDC<br>props:<br>&nbsp; type: object<br>&nbsp; properties:<br>&nbsp;&nbsp;&nbsp; some_prop:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type: string<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title: Some Prop<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; description: Should I show up as the textfield description?</pre><p>I rather expected <code>Should I show up as the textfield description?</code> to appear as an equivalent-ish thing to the FAPI <code>#description</code> on the corresponding form element.</p> <h3 id="proposed-resolution">Proposed resolution</h3> <p>Either make the form element display the <code>#description</code> or educate me on the intended use of <code>description</code> &#128517;.</p> <h3 id="ui-changes">User interface changes</h3> <p>Possibly many, depending on the outcome!<br> <img src="https://www.drupal.org/files/issues/2024-12-06/missing-description.png" alt="Description text should appear under textfield inputs"></p>
issue