Update from code changes: document className prop on components - #7165
Update from code changes: document className prop on components#7165mintlify[bot] wants to merge 5 commits into
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
- Updated quickstart.mdx Mintlify-Source: dashboard-editor
|
|
||
| <Accordion title="robert"> | ||
| team is awesome | ||
| </Accordion> |
There was a problem hiding this comment.
Accidental test content on Quickstart
High Severity
A leftover Accordion with the title robert and the body team is awesome was added at the top of quickstart.mdx. This personal test content is unrelated to the page and will appear to every visitor on the main getting-started docs.
Reviewed by Cursor Bugbot for commit cd5c010. Configure here.
- Updated ai-native.mdx Mintlify-Source: dashboard-editor
- Updated ai-native.mdx Mintlify-Source: dashboard-editor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 682a059. Configure here.
| In addition to reading individual pages, users can chat with the [assistant](/assistant) in your documentation for immediate answers to their questions and links to relevant content. The assistant helps guide users through your product with accurate information from your documentation. Embed the assistant into custom apps with the [API](/api/assistant/create-assistant-message-v2) to extend where users can access your documentation. | ||
| <Accordion title="Assistant"> | ||
| In addition to reading individual pages, users can chat with the [assistant](/assistant) in your documentation for immediate answers to their questions and links to relevant content. The assistant helps guide users through your product with accurate information from your documentation. Embed the assistant into custom apps with the [API](/api/assistant/create-assistant-message-v2) to extend where users can access your documentation. | ||
| </Accordion> |
There was a problem hiding this comment.
Accidental accordion hides reading content
Medium Severity
The Reading section body is wrapped in an Accordion titled Assistant, while the sibling Writing and Discovering sections remain as regular paragraphs. This looks like leftover test markup and hides the assistant overview behind a collapsed panel on a primary docs page.
Reviewed by Cursor Bugbot for commit 682a059. Configure here.


Summary
All MDX components now accept an optional
classNameprop that is merged onto the component's outer element, bringing components likeAccordion,Steps, callouts,Tab,ParamField, andTooltipin line withCard,Columns, andBadge, which already supported it. This makes it possible to style any component with Tailwind CSS or custom CSS classes without extra wrapper markup.Banneris config-driven and unchanged.Shipped in https://github.com/mintlify/mint/pull/10540
Changes
classNameprop with an example.classNamesupport with an example in the Tailwind CSS styling section of the custom scripts page.skill.mdto mention theclassNameprop for component styling.Update history
classNameprop (components overview, custom scripts page, es/fr/zh translations,skill.md) for https://github.com/mintlify/mint/pull/10540.classNameon MDX components): internal fix that makes the already-documented behavior work; no docs content change needed.Note
Low Risk
Documentation-only changes with no runtime or security impact; the stray quickstart accordion is a content-quality issue, not a product risk.
Overview
Documents that all MDX components now accept an optional
classNameprop whose classes are merged onto the outer element, with examples using Tailwind or custom CSS.Adds a Style components section on the English and localized (
es,fr,zh) components overview pages, mirrors the same guidance in Tailwind CSS oncustom-scripts, and updatesskill.mdso agents preferclassName(orcustom.css) for layout tweaks.Incidental edits:
ai-native.mdxreformats frontmatterkeywords, wraps the Reading/assistant copy in an<Accordion>, and adds Automations and Contextual menu cards to the enable-AI card group.quickstart.mdxuses the same keywords list format, trims blank lines in the agent-only setup steps, and adds a test<Accordion title="robert">block at the top that looks unintentional and should be removed before merge.Reviewed by Cursor Bugbot for commit 682a059. Bugbot is set up for automated code reviews on this repo. Configure here.
Mintlify
1 thread from 1 user in Mintlify