Skip to content

Commit

Permalink
[docs] Improve the autogenerated "Unstyled" and "API" text (#35185)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelsycamore committed Nov 29, 2022
1 parent 3cdd8a9 commit 9949df0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/packages/markdown/parseMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,14 +417,18 @@ function prepareMarkdown(config) {
contents.push(`
## Unstyled
The component also comes with an [unstyled version](${headers.unstyled}). It's ideal for doing heavy customizations and minimizing bundle size.
:::success
[MUI Base](/base/getting-started/overview/) provides a headless ("unstyled") version of this [${title}](${headers.unstyled}). Try it if you need more flexibility in customization and a smaller bundle size.
:::
`);
}

if (headers.components.length > 0) {
contents.push(`
## API
See the documentation below for a complete reference to all of the props and classes available to the components mentioned here.
${headers.components
.map((component) => {
const componentPkgMap = componentPackageMapping[headers.product];
Expand Down

0 comments on commit 9949df0

Please sign in to comment.