The reader's active-language choice is remembered and synchronized across every group on the page (and site) for the session, so choosing "TypeScript" once keeps every group showing TypeScript.
Reader default tab (optional feature). When the site enables default-tab
preferences, every distinct group appears in Settings → "Code example defaults"
with a dropdown to pick the tab it opens on by default. That choice is saved to the
reader's device, and to their account when signed in. The per-session sync above
still applies but never overwrites the saved default. Authors do nothing extra --
any <CodeGroup> you write is picked up automatically.
Always use the string form (labels="A, B, C"). This repo renders MDX through next-mdx-remote/rsc, which does not pass JSX expression attributes -- so labels={["A", "B"]} (and any other {...} prop) is silently dropped and every tab falls back to Tab 1, Tab 2, and so on. For the same reason, opt out of syncing with the string sync="false", never sync={false}. Keep commas out of a label, since the string is split on commas.
The same "read an account balance" feature across all three Solana surfaces. Pick a tab -- the other groups on this page follow your choice.