- Merge request !14056feat: #3559809 Add noUI support for SDC props to hide attributes and utility props from UI while preserving default values → (Open) created by Rajab Natshah
✨
Allow SDCs to be marked to be excluded from UI
Active
In Drupal core SDC, the noUI flag works only at the component level.
There is no way to hide individual props, especially when those props represent:
attributesclassesProps meant to be filled automatically by defaults or by parent components
Today, these props still appear in the Component Canvas UI (and other UIs such as Layout Builder, Paragraphs UI, and third-party SDC editors).
This results in:
UI clutter when every component declares attributes or utility classes
Many SDC implementations, especially Bootstrap utilities, design systems, and UI Suite require attributes and class props to be internal-only while still being set automatically through defaults.
Add prop-level noUI support so builders can explicitly hide internal structural props (attributes, classes, utility classes) while still using default values.
Example:
props:
attributes:
type: attributes
noUI: true
default: {}
utility_classes:
type: string[]
noUI: true
default:
- "mt-3"
- "mb-4"
Expected behavior:
By having this any SDC Based theme can work as Canvas Based Theme in no time
Use Cases
Using readOnly (does not hide UI).
noUI boolean to SDC prop definitions.Active
11.3 🔥
single-directory components
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.