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

Implement reusable Language Tab Components #254

Open
lachieh opened this issue Jan 3, 2024 · 3 comments
Open

Implement reusable Language Tab Components #254

lachieh opened this issue Jan 3, 2024 · 3 comments
Labels
docusaurus enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed pinned react

Comments

@lachieh
Copy link
Contributor

lachieh commented Jan 3, 2024

We use the <Tabs> and <Tab> components to sync the language selected by the user, however, this requires maintaining the same id everywhere the components are used. It would be helpful to be able to use a component that handles the props for us.

For example:

<LangTabs>
  <LangTab lang="rust">...</LangTab>
  <LangTab lang="go">...</LangTab>
  ...etc
</LangTabs>

Alternatively, each language could be a specific component. This would enable specific API for props (i.e. marking a RustTab as a component vs module, or marking a GoTab as the "tiny" or main syntax)

<LangTabs>
  <RustTab>...</RustTab>
  <GoTab>...</GoTab>
  ...etc
</LangTabs>

It would also be useful to not have to import these components every time they are used in an mdx file.

@brooksmtownsend
Copy link
Member

After #280 and #279 I really want this 😄

@lachieh lachieh added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jan 29, 2024
Copy link

stale bot commented Apr 13, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this has been closed too eagerly, please feel free to tag a maintainer so we can keep working on the issue. Thank you for contributing to wasmCloud!

@stale stale bot added the stale label Apr 13, 2024
@lachieh lachieh removed the stale label Apr 14, 2024
Copy link

stale bot commented Jun 13, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this has been closed too eagerly, please feel free to tag a maintainer so we can keep working on the issue. Thank you for contributing to wasmCloud!

@stale stale bot added the stale label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docusaurus enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed pinned react
Projects
None yet
Development

No branches or pull requests

2 participants