ZTL-UwU / shadcn-docs-nuxt

Effortless and beautiful docs template built with Nuxt Content & shadcn-vue.
https://shadcn-docs-nuxt.vercel.app/
MIT License
189 stars 32 forks source link

How to use Vue components inside the markdown #35

Open peoray opened 2 weeks ago

peoray commented 2 weeks ago

Using this awesome template, I'm building a port of Magic UI in Vue. I want to be able to preview the Vue code inside of the markdown files.

An example can be found here, basically where we have preview and code. I checked the source code and saw they use a ComponentPreview component.

Is this possible in this template?

ZTL-UwU commented 2 weeks ago

Yes, this feature is planed. I'll implement it once I figure out a good DX.

Also, checkout Inspira UI (if you haven't) which is also a Magic UI / Aceternity UI port to vue, and it uses shadcn-docs-nuxt as well.