Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Add a components property #11198

Closed

Conversation

oliviertassinari
Copy link
Member

  • Closes TablePagination -- Cannot Style MenuItems for dropdown menu #10720. People can use the classes.menuItem customization point to mess around. We can potentially add components.MenuItem in the future.
  • Closes Render prop API? #10476. We keep the xxxProps properties as they are quite handy for simple configuration. We introduce a components?: Object property that can be used for all sort of customization. It's underused right now. But It should allow us to grow in the future stable releases. Also, it's providing some symetry with the classes property. Hopefully, it's simpler to understand this way.

I couldn't find a clean way to support the render prop pattern :/. Let's try again in the future. This shouldn't require breaking changes.

Breaking change

-<ListItem ContainerComponent="div">
+<ListItem components={{ Container: 'div' }}>

@oliviertassinari
Copy link
Member Author

oliviertassinari commented May 1, 2018

Well no. It's a mess. I'm breaking it into different pull-requests. It was great for the reflection and gluing everything together though :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant