The tab naming in our current CodeTabs component isn’t very descriptive and doesn’t clearly indicate that the displayed code is an example. This can be confusing for screen reader users and for people who are new to the ecosystem
Renaming them to something like Example CJS, Example MJS, and displaying the type separately could be more intuitive.
- Since this improvement is implemented in the
ui-components package and indirectly affects doc-kit as well, it should also cover scenarios like ESM (2), CJS (2), JS etc.
The design can be reviewed in Figma (apologies in advance for my terrible Figma skills 😅).

The tab naming in our current
CodeTabscomponent isn’t very descriptive and doesn’t clearly indicate that the displayed code is an example. This can be confusing for screen reader users and for people who are new to the ecosystemRenaming them to something like
Example CJS,Example MJS, and displaying the type separately could be more intuitive.ui-componentspackage and indirectly affectsdoc-kitas well, it should also cover scenarios likeESM (2),CJS (2),JSetc.The design can be reviewed in Figma (apologies in advance for my terrible Figma skills 😅).