Needs review
Project:
Single Directory Components Styleguide
Version:
1.2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2025 at 14:06 UTC
Updated:
12 Aug 2026 at 18:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
omarlopesinoWorking on it, see the attached MR. I will go back on this tomorrow to review if it is possible to add a different form element type for each property type.
Comment #4
alemadleiQuestion,
Was this stated somewhere on the original SDC definition?
I mean, I think it is indeed possible, but working on SDC so far, when this happens I prefer to use slots to have components in components.
Comment #5
alejandro cabarcos commentedHello Alejandro,
First of all thanks for your work on this module, we already implemented it on several projects and planning to make it a must-have on our stack.
Im thinking about a component with multiple links, where you want to trigger SDC prop validation to make it easier for content editors.
According to https://www.drupal.org/docs/develop/theming-drupal/using-single-director... its allowed a prop of
type: arrayComment #6
omarlopesinoMoving to needs review as it is complete and tested internally. Please review, thanks!
Comment #7
mortona2k commentedMR is not working for an array of objects. I see a multivalue text field, and it's disabled.
Comment #9
mortona2k commentedI was able to get it working with claude:
Added as a separate MR for further review.
For this case, I'm looking at the menu-tree component from the Menu Tree module.