Skip to content

Create Tabs for prose code #2072

Answered by nobkd
dbzx10299 asked this question in Q&A
Discussion options

You must be logged in to vote

Nuxt Themes Typography Module overrides prose code and adds a copy button to the generated code block.


Nuxt Themes Elements implements a code group element, but hasn't open sourced the code (yet).
If you're interested about the implementation, you could install it to a project and look inside the node_modules folder: node_modules/@nuxt-themes/elements/components/globals/CodeGroup.vue.


You could look into those code pieces and implement your own variant.
Or maybe this was/were the package(s) you were looking for.

As far as I could see, you were looking for a code group. Even if this wasn't the case, I hope, that this still helps.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dbzx10299
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants