Skip to content

[docs] Create a new page to introduce the concept of slots and slotProps  #13354

@flaviendelangle

Description

@flaviendelangle

Extracted from https://mui-org.slack.com/archives/C04U3R2V9UK/p1714135691643129?thread_ts=1714088113.295129&cid=C04U3R2V9UK

Benchmark

Content

  • How to define a slot
  • How to pass slotProps
  • How to handle TypeScript (would be nice to align on some DX here eventually)
  • People should not create slots in render because it can remount the component
  • How to pass props to your custom slot (using slotProps or a context)
  • Links to a home page for slots on each set of components
  • other?

Question

  • Should this page also link to other customization topics like styleOverrides / classes management etc... Most of those topics are documented in the Material UI doc so maybe a few additional links would allow for this page to cover most of the customization spectrum.

Search keywords:

Metadata

Metadata

Labels

docsImprovements or additions to the documentation.scope: all componentsWidespread work has an impact on almost all components.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions