Document className and Tailwind arbitrary value support - #7301
Merged
ethanpalm merged 3 commits intoSep 8, 2026
Merged
Conversation
All built-in components now accept a className prop (mint#10540), and dynamic Tailwind utilities work in className on MDX components (mint#6737). Two pages stated the opposite. - Correct the claims that Tailwind arbitrary values are unsupported in customize/custom-scripts and guides/custom-layouts - Add className and arbitrary value guidance to the Tailwind section of custom-scripts, including the runtime-class limitation and the Tab content-panel caveat - Add a Style components section to the components overview - Add className property rows to every component reference page that supports it, and note the three components that do not - Document inline Markdown support in component title props - Correct the callouts page, which said typed callouts accept only children - Replace inline style resizing with Tailwind classes in image embeds - Add a help center article for Tailwind classes not applying in the editor's live preview, and note the limitation in custom-layouts - Point skill.md at className before custom.css - Accept className, keyframes, and unstyled in the Vale vocabulary Resolves DOC-316, DOC-317 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
ethanpalm
commented
Sep 8, 2026
ethanpalm
commented
Sep 8, 2026
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
ethanpalm
commented
Sep 8, 2026
ethanpalm
commented
Sep 8, 2026
ethanpalm
commented
Sep 8, 2026
ethanpalm
commented
Sep 8, 2026
ethanpalm
commented
Sep 8, 2026
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
ethanpalm
deleted the
ethan/doc-316-document-classname-support-across-components
branch
September 8, 2026 23:54
This was referenced Sep 8, 2026
This was referenced Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
classNamenow works on all built-in components (mint#10540) and dynamic Tailwind utilities work inside it (mint#6737). Two of our pages stated the opposite: both told users that Tailwind arbitrary values are unsupported and to use thestyleprop instead.Resolves DOC-316 and DOC-317. DOC-317 was blocked by ENG-7289, which shipped as mint#10540.
Changes
Corrections
customize/custom-scriptsandguides/custom-layoutsno longer claim arbitrary values are unsupported.create/image-embedsteaches Tailwind classes for resizing instead of inlinestyle.components/calloutssaid typed callouts accept onlychildren.New guidance
classNameand arbitrary value section incustom-scripts, covering variants, the runtime-class limitation, and theTabcontent-panel caveat.classNameproperty rows on every component reference page that supports it, plus the three components that don't:Banner,MDX,Visibility.titleprops.Verification
Every behavioral claim was checked against a real
mint devbuild rather than taken from PR descriptions, since #4938 had to be reverted for documentingclassNamesupport that didn't exist yet.A test page with
<Note className="w-[453px] lg:w-[calc(100%-2rem)] bg-[#0f172a] !mt-0 data-[state=open]:bg-black/50">produced:Component coverage was confirmed by reading each component's source in
mintlify/mint, not from the PR description. The live preview limitation was confirmed too:getDynamicTailwindCssis only called from the client's static-props paths, never from the dashboard live-preview compile route.mint broken-links,mint a11y, andvaleare clean. All changed pages return 200 inmint dev.Supersedes
<Accordion title="robert">test block inquickstart.mdxplus unrelatedai-native.mdxedits.titleMarkdown finding are included here.Areas for review
RequestExample/ResponseExample. I leftcomponents/examplesalone. Those get extracted at compile time into the panel and I couldn't confirmclassNamereaches the rendered element.getMdx.ts), so a class that appears only inside a snippet file may never get themint-prefix. I did not document this because I haven't tested it, but it's worth confirming with Brandon — it may be a bug rather than intended behavior.className,keyframes?, andunstyledto the vocabulary andclassNameto theHeadingsexceptions, rather than reword correct prose.🤖 Generated with Claude Code
Note
Low Risk
Documentation-only changes with no runtime or product code; risk is limited to possible inaccuracies in behavioral claims.
Overview
Updates Mintlify docs to match shipped
classNameon built-in components and Tailwind arbitrary values, replacing guidance that told authors to use inlinestyleor claimed arbitrary utilities were unsupported.customize/custom-scriptsandguides/custom-layoutsnow cover styling components viaclassName, arbitrary values and variants, writing class names literally (not assembled at runtime), and avoiding thestyleprop.create/image-embedsresizes images with Tailwind instead of JSXstyle. Component reference pages addclassNamewhere supported, note inline Markdown ontitleprops, and call out exceptions (Banner, MDX, Visibility).components/indexadds a Style components section.A new help center article explains why Tailwind can look unstyled in the web editor live preview (no per-page CSS generation without a build);
docs.jsonlinks it.skill.mdand Vale vocab/heading exceptions are updated for the new terminology.Reviewed by Cursor Bugbot for commit 167885a. Bugbot is set up for automated code reviews on this repo. Configure here.