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

How to use default Vue components elsewhere #4273

Open
Charon2050 opened this issue Oct 12, 2024 · 0 comments
Open

How to use default Vue components elsewhere #4273

Charon2050 opened this issue Oct 12, 2024 · 0 comments

Comments

@Charon2050
Copy link

Charon2050 commented Oct 12, 2024

I want to call the Feature Component on the homepage separately and insert it into a Markdown document, like a card link.

But after

import VPFeature from 'vitepress/dist/client/theme-default/components/VPFeature.vue'

<VPFeature title="title" details="details" link="link"/>

It doesn't seem to be correct:

图片

How to make it look correct, just like on the homepage?:

图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant