Open oliviertassinari opened 1 month ago
We're aware the documentation is lacking in this regard. We're going to update it before the stable release.
@michaldudak cool, no urgency on fixing this, but I wanted to flag the need to design this in a way that we can eventually automatically document. If we can't, then I think to design differently.
Steps to reproduce
Current behavior
No documentation on the different DOM states that can be customized, e.g.
[data-disabled]
Expected behavior
Clear API documentation on the CSS API that is available to customize the component. https://mui.com/base-ui/react-switch/components-api/#switch-classes
Context
This is a regression from the DX with @mui/base / @mui/material. Those new states are not automatically documented anymore.
I saw this raised in https://mui-org.slack.com/archives/C05SBSU8NPR/p1723629104973729?thread_ts=1723628372.562069&cid=C05SBSU8NPR.
As a side note, there are also considerations to have with the performance of this new approach: https://mui-org.slack.com/archives/C05SBSU8NPR/p1723640921594739?thread_ts=1723628372.562069&cid=C05SBSU8NPR
https://www.youtube.com/watch?v=nWcexTnvIKI
Benchmarks
Your environment
``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```npx @mui/envinfo
Search keywords: -