Skip to content

Conversation

@coltondotio
Copy link
Contributor

Short description of the changes made

tabs can have a query param name

Added paramName prop to TabGroup:

  • When paramName is specified (e.g., paramName="tab"), the component syncs with the URL query parameter
  • On initial load, if ?tab=someTabId is in the URL and matches a tab's id, that tab is selected
  • When a tab is clicked, the URL is updated with ?tab=selectedTabId

Usage example:

Overview content... Installation content...

With ?tab=installation in the URL, the "Installation" tab will be automatically selected. When users click between tabs, the URL will update accordingly (using router.replace so it doesn't pollute browser history).

The feature is opt-in - tabs without paramName work exactly as before.

@vercel
Copy link
Contributor

vercel bot commented Dec 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
dev.ferndocs.com Ready Ready Preview Dec 23, 2025 0:20am
fern-dashboard Ready Ready Preview Dec 23, 2025 0:20am
fern-dashboard-dev Building Building Preview Dec 23, 2025 0:20am
prod-assets.ferndocs.com Ready Ready Preview Dec 23, 2025 0:20am
prod.ferndocs.com Ready Ready Preview Dec 23, 2025 0:20am
1 Skipped Deployment
Project Deployment Review Updated (UTC)
fern-platform Ignored Ignored Dec 23, 2025 0:20am

@Ryan-Amirthan Ryan-Amirthan self-requested a review December 23, 2025 00:15
@github-actions
Copy link
Contributor

🌱 Smoke Test Preview

Run at: 2025-12-23 00:20:33 UTC

Testing branch changes with smoke test content:

🕷️ Smoke Test Crawler Results

Pages crawled: 49
Successful: 49 ✅
With errors: 0

🎉 All pages loaded successfully with no errors!

@coltondotio coltondotio merged commit a11c748 into app Dec 23, 2025
23 of 24 checks passed
@coltondotio coltondotio deleted the cberry/tab-query-param branch December 23, 2025 00:21
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.

3 participants