Skip to content

Request: Way to target Compound Components (eg. React) in a theme specifically. (<MyComponent.*>) #62040

Open
@demiro

Description

@demiro

Not sure if other libraries offer something similar, but react has this way of building compound components that result in a code like this:

Image

I think this pattern is quite widely adopted, specially in UI component libraries and is quite versatile and powerful.

What I don't like about it that it becomes extremely hard to read

Image

I would like the way to identify the compound components (slot components) - (or compound part of the name / or both) and set different color to them

so I can get something like

Image

or

Image

would this be possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions