Update from code changes: document Tree highlight prop - #6843
Open
mintlify[bot] wants to merge 4 commits into
Open
Update from code changes: document Tree highlight prop#6843mintlify[bot] wants to merge 4 commits into
mintlify[bot] wants to merge 4 commits into
Conversation
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
dks333
approved these changes
Jul 31, 2026
Contributor
|
@mintlify document highlight color variables as well. for reference https://base-ui.com/react/handbook/styling#css-variables |
Contributor
Author
|
Documented the CSS variables that let readers customize the Tree highlight colors across all four languages. |
Contributor
|
@mintlify no user should set only --tree-highlight variable to Tree root component to override |
Contributor
Author
|
Corrected the highlight customization to use the single |
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
The Tree component gained an optional
highlightprop onTree.FileandTree.Folderfor marking the active item. Highlighting a folder also tints its descendants so the active path stays visible when the folder is expanded. This PR adds a new "Highlight the active path" section with an example and documents the prop underTree.FileandTree.Folderproperties in English, Spanish, and French.Triggering code PR: https://github.com/mintlify/mint/pull/9696
Changes
components/tree.mdx: added "Highlight the active path" section andhighlightprop entries.es/components/tree.mdx: translated section and prop entries; removed the now-inaccurate "only acceptsname" note.fr/components/tree.mdx: translated section and prop entries; removed the now-inaccurate "only acceptsname" note.