Implement reusable Language Tab Components #254
Labels
docusaurus
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
pinned
react
We use the
<Tabs>
and<Tab>
components to sync the language selected by the user, however, this requires maintaining the sameid
everywhere the components are used. It would be helpful to be able to use a component that handles the props for us.For example:
Alternatively, each language could be a specific component. This would enable specific API for props (i.e. marking a
RustTab
as acomponent
vsmodule
, or marking aGoTab
as the "tiny" or main syntax)It would also be useful to not have to import these components every time they are used in an mdx file.
The text was updated successfully, but these errors were encountered: