Skip to content

Conversation

@ethanpalm
Copy link
Collaborator

@ethanpalm ethanpalm commented Jan 16, 2026

Added documentation for the automatic synchronization feature between tabs and code groups when their labels match. Also documented the new borderBottom property for the Tabs component.

Files changed:

  • components/tabs.mdx - Added synchronization section, updated property descriptions, and documented borderBottom property
  • components/code-groups.mdx - Added synchronization section explaining cross-component syncing and language persistence

Generated from feat: add optional bottom border to Tabs component @rtbarnes


Note

Documents new cross-component selection syncing and updates Tabs props.

  • Adds syncing behavior docs: Tabs and CodeGroup now coordinate selections across components with matching labels
  • Updates components/tabs.mdx: clarifies title behavior (matching titles synchronize), and documents new borderBottom boolean prop
  • Updates components/code-groups.mdx: adds syncing section and adjusts heading to ## Create code groups

Written by Cursor Bugbot for commit 1756609. This will update automatically on new commits. Configure here.

ethanpalm and others added 2 commits January 16, 2026 11:27
Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
@ethanpalm ethanpalm merged commit 4cf3001 into main Jan 16, 2026
6 checks passed
@ethanpalm ethanpalm deleted the mintlify/tabs-code-groups-sync-docs-63941 branch January 16, 2026 23:45
Code groups inherit global styling from your `docs.json` file. Customize your theme using `styling.codeblocks`. See [Settings](/organize/settings#styling) for configuration options.

## Creating code groups
Code groups automatically synchronize with other code groups and [tabs](/components/tabs) on the same page when their labels match. When you select a language in one code group, all tabs and code groups with matching labels update to show the same language.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth keeping this as its own section heading for scanability. Also, if language selection still persists across reloads (mentioned in the PR description), calling that out here helps set expectations.

Suggested change
Code groups automatically synchronize with other code groups and [tabs](/components/tabs) on the same page when their labels match. When you select a language in one code group, all tabs and code groups with matching labels update to show the same language.
## Synchronized selections
Code groups automatically synchronize with other code groups and [tabs](/components/tabs) on the same page when their labels match. When you select a language in one code group, all tabs and code groups with matching labels update to show the same language.
Your language selection persists across page reloads.

</Tabs>
````
Tabs automatically synchronize with other tabs and [code groups](/components/code-groups) on the same page when their labels match. When you select a tab, all other tabs and code groups with the same label update to match your selection.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor clarity tweak: since this is driven by tab labels, consider explicitly tying "labels" to Tab title values.

Suggested change
Tabs automatically synchronize with other tabs and [code groups](/components/code-groups) on the same page when their labels match. When you select a tab, all other tabs and code groups with the same label update to match your selection.
Tabs automatically synchronize with other tabs and [code groups](/components/code-groups) on the same page when their labels match (the `title` values). When you select a tab, all other tabs and code groups with the same label update to match your selection.

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.

2 participants