Generated with the help of an LLM.
Problem/Motivation
In the component form, an attributes prop is a one-line field unless the theme mapping lists it as multiline.
One src and alt already run past a line.
A multiline field is sized to its content, so it starts narrow and widens while typing.
Nothing tells the site builder that a class typed there bypasses the theme's styles and is lost on a theme switch.
Proposed resolution
Every prop of the attributes type is multiline in any mapping, and a multiline field is full width, growing in height only.
The component's own attributes prop gets help after its description: use the component settings and Styles first, and "Styles attributes" for classes when UI Styles UI Patterns provides that source.
User interface changes
Attributes props show as a full-width textarea with an info button holding the help.
Issue fork ui_controls-3642196
Show commands
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 #3
mogtofu33 commentedComment #5
mogtofu33 commented