mui / material-ui

Material UI: Comprehensive React component library that implements Google's Material Design. Free forever.
https://mui.com/material-ui/
MIT License
93.59k stars 32.2k forks source link

[docs-infra] Support code tabs #39837

Closed oliviertassinari closed 5 months ago

oliviertassinari commented 11 months ago

Summary 💡

A quick placeholder issue for the need to support tabs in the demos. (I couldn't find another issue).

Examples 🌈

https://nivo.rocks/sunburst/

https://www.radix-ui.com/primitives/docs/components/avatar

Motivation 🔦

This could allow us to solve a few problems at once:


A note on the copy button behavior. I would be in favor of having the main one:

to combine the files together when possible

danilo-leal commented 11 months ago

Heya — how's this different from the one you opened (https://github.com/mui/material-ui/issues/38911) a while ago? We're aware of this and may prioritize it very soon within the docs-infra roadmap!

oliviertassinari commented 11 months ago

@danilo-leal Great point. I think we can treat these two as different issues: