material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[docs] Improve the Base Usage page

Open mapache-salvaje opened this issue 3 years ago • 1 comments

https://deploy-preview-33272--material-ui.netlify.app/base/getting-started/usage/

I've gotten a better understanding of the component slots and the props that control them as I've been documenting them in #33156, so this PR adds some clarification to the Base Usage page where they're explained in detail.

Changes include:

  • standardizing the "slot" terminology
  • tweaking the Getting started code snippet to match the updated pattern on component pages
  • clarifying that shared props do not apply to utility components
  • pointing out the difference in slot casing between components and componentsProps
  • suggesting that componentsProps and components may be redundant for components that only have a root slot
  • recommending that users start with components over hooks

mapache-salvaje avatar Jun 23 '22 15:06 mapache-salvaje

No bundle size changes

Generated by :no_entry_sign: dangerJS against decf5856245d85d7ed570c56e836877912b2a960

mui-bot avatar Jun 23 '22 15:06 mui-bot