Skip to content

Configuring plugin to work with polymorphic "as" prop components #923

Open
@stephenkoo

Description

@stephenkoo

Having trouble applying this plugin to polymorphic components that take an as or component prop which determines the html element the component will be rendered as.

For instance the commonly used Box component pattern like the one in Material UI:

<Box component="button">This is a button</Box>
<Box component="h1">This is a H1 element</Box>

The WordPress Gutenberg team seem to have the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions