Repository navigation
Vue SFC code snippets as tabs #5492
Okamidev
started this conversation in
Show and tell
Replies: 0 comments
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.
Hi everyone 👋
I just released markdown-it-sfc-tabs-snippet, a small plugin that extends VitePress code snippet import.
Just like
<<< @/path/to/filelets you include a file's content in your markdown, this plugin lets you import a Vue SFC and display it as tabs, one per block (template, script, style, etc.):See live demo here
I built it for the documentation of a small component library / design system we share across several projects. It helps to make the demo components source easier to read.
It also works as a standard markdown-it plugin outside of VitePress.
Feedback and suggestions are welcome!
All reactions