Replies: 1 comment 5 replies
-
There's no good way of doing that currently. But I'm working on v1.0 and the idea is to include a built-in switcher for that use case. Also, if you have more feature requests this is a great time to bring them up :) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have a CH.Code with multiple code samples to be rendered as tabs. We are using each tab for a particular programming language:

What I'd like to do is pre-select a tab based on a previously saved programming language preference. I've tried wrapping the Code component to experiment like so:
It renders properly, but there doesn't seem to be a way to make the selected tab change.
In addition, I will need to be able to save their preference if they change tabs.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions