Skip to content

unable to styled ListItem (typescript definition) #26469

@dabretin

Description

@dabretin

I think it's not possible to styled ListItem because of the typescript definition of ListItemProps

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

image
Okayyy it's really for showing the problem, the real goal is to styled the ListItem without using sx props -it will be a library component that let the user potentially use the sx props-.

Context 🔦

Your Environment 🌎

@types/react...17.0.8
@types/react-dom...17.0.5
typescript...4.3.2
@emotion/core...11.0.0
@emotion/react...11.4.0
@emotion/styled...11.3.0
@material-ui/core@next...5.0.0-alpha.34
@material-ui/icons@next...5.0.0-alpha.34
@material-ui/lab@next...5.0.0-alpha.34
react...17.0.2
react-dom...17.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions