Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remember a user's choice in tabbed codeblocks #5764

Closed
PaulAsjes opened this issue Jan 27, 2025 · 1 comment
Closed

Remember a user's choice in tabbed codeblocks #5764

PaulAsjes opened this issue Jan 27, 2025 · 1 comment
Assignees
Labels
product/docs Fern Docs which builds and hosts a developer documentation site

Comments

@PaulAsjes
Copy link

PaulAsjes commented Jan 27, 2025

Feature Description

Codeblocks with tabbed interfaces are often used to show how to do one thing in several different languages. Currently a user has to manually click on their language of choice for each codeblock in the docs site. Instead the user's choice should be stored in a cookie and automatically switch each tabbed codeblock to their language of choice.

See the Stripe and WorkOS documentation for examples of this behaviour.

Use Case

If I'm viewing code heavy docs (like in a quick start) then I should only have to pick my programming language of choice once so the rest of the docs show that language without interference.

@PaulAsjes PaulAsjes added feature Requests for new features. product/docs Fern Docs which builds and hosts a developer documentation site labels Jan 27, 2025
@dannysheridan dannysheridan removed the feature Requests for new features. label Feb 3, 2025
@dannysheridan
Copy link
Member

Great idea! @chdeskur built this.

PR to document: 66f146a
Documentation: https://buildwithfern.com/learn/docs/content/components/tabs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product/docs Fern Docs which builds and hosts a developer documentation site
Development

No branches or pull requests

3 participants