Skip to content

Update from code changes: document className prop on components - #7165

Open
mintlify[bot] wants to merge 2 commits into
mainfrom
mintlify/0e417ed8
Open

Update from code changes: document className prop on components#7165
mintlify[bot] wants to merge 2 commits into
mainfrom
mintlify/0e417ed8

Conversation

@mintlify

@mintlify mintlify Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

All MDX components now accept an optional className prop that is merged onto the component's outer element, bringing components like Accordion, Steps, callouts, Tab, ParamField, and Tooltip in line with Card, Columns, and Badge, which already supported it. This makes it possible to style any component with Tailwind CSS or custom CSS classes without extra wrapper markup. Banner is config-driven and unchanged.

Shipped in https://github.com/mintlify/mint/pull/10540

Changes

  • Added a "Style components" section to the components overview explaining the universal className prop with an example.
  • Noted className support with an example in the Tailwind CSS styling section of the custom scripts page.
  • Mirrored both changes in the es, fr, and zh translations.
  • Tweaked skill.md to mention the className prop for component styling.

Update history

  • Initial run: documented the universal className prop (components overview, custom scripts page, es/fr/zh translations, skill.md) for https://github.com/mintlify/mint/pull/10540.
  • Best-practices pass: kept code block titles in English on translated pages.
  • Reviewed https://github.com/mintlify/mint/pull/6737 (Tailwind class prefixing now works for className on MDX components): internal fix that makes the already-documented behavior work; no docs content change needed.

@mintlify

mintlify Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
mintlify 🟢 Ready View Preview Aug 28, 2026, 2:01 AM

@mintlify

mintlify Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
tomee 🟡 Building Aug 28, 2026, 2:00 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants