Fixed
Project:
Display Builder
Version:
1.0.x-dev
Component:
Main / Misc.
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Jul 2025 at 10:34 UTC
Updated:
9 Jul 2026 at 15:23 UTC
Jump to comment: Most recent
We should provide some generic components to help build, disadled by default:
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mogtofu33 commentedComment #3
pdureau commentedIt was included in another (alpha3) issue MR, wasn't it?
Comment #4
mogtofu33 commentedSee the updated content of this issue, 2 of them were included in other mr.
Comment #5
pdureau commentedoh yes, the issue description was updated. My bad.
Comment #6
grimreaperHello,
I don't think it is up to the display builder tool to provide the components. The components will be provided by the design system used on a website.
Otherwise we will end up like with the 4 Core layouts (1, 2, 3, 4 columns) that we (I only?) use in BO dashboards and that we have to remove with stuff like Layout Builder Restrictions in front.
Special case for "HTML Element": I have something similar on projects, and having something like that would definitively become handy to not have to duplicate it on every projects. But let's put it in UI Patterns 2, why only reserved for Display Builder users?
Comment #7
grimreaperDiscussed with @mogtofu33 during weekly meeting.
HTML wrapper and HTML void element components to go into UIP2
Grid/Flex/Space, to precise, either:
- submodule labelled as demo (problem of Composer namespace)
- test module
- separated drupal.org project (but risk that other people propose their own stuff)
- document as best practice, like the grid_row component was identified as a best practice in its time.
Comment #8
pdureau commentedComment #9
mogtofu33 commentedComment #10
pdureau commentedTo avoid confusion with components provided by Design Sytems, maybe we can:
Comment #11
mogtofu33 commentedMark them as noUi is planned when we are Drupal >11.3
Block? I don't think it's a good place, code of this island is already too complex.
We can add something to the label or have an other group than Layout.
Comment #12
pdureau commentedThose ones were already merged before beta1:
Let's discuss about them:
spacer: problematic because the enum values in pixels don't necessary fits with the design system currently used. It would be better to rely on Styles plugins in a more generic component. Alsodb-spacer-*is Display Builder specific markup which must be avoided.html_wrapper: confusing naming it is a "normal" HTML elementhtml_tag: confusing naming because it is only for empty HTML elementsSo, we will first #3556382: (Temporarily) Remove the generic components in beta1 and we will reintroduce them with this ticket, after beta1 and after a discussion.
Proposal 1: Components following technical constraints
We follow the constraints of HTML meaning and SDC definition/template structure:
br,hr...article,aside,nav,section... it is useful to split them from other block elements if we create a "Layouts" library panel one day.blockquote...abbr,strong,em,q...Proposal 2: Components following functional needs
What are they ? How the users (site builders, content editors..) understand the element building blocks of a display? Let's study what the pother display building tools are proposing
Comment #14
mogtofu33 commentedAs there is no consensus, will move it as a module.
Comment #17
pdureau commentedLet's try something :)
Comment #18
pdureau commentedComment #19
mogtofu33 commentedComment #23
mogtofu33 commentedPartial merge for beta1, need some work and discussion.
Comment #25
pdureau commentedComment #26
mogtofu33 commentedComment #27
mogtofu33 commentedIn a scenario of recipe, easier to move to a module: https://www.drupal.org/project/generic_components
And I realized using Bootstrap that most of the time we do not need those generics.