-
|
Is it possible to use VPButton with Vue? |
Beta Was this translation helpful? Give feedback.
Answered by
ms264556
Jan 1, 2025
Replies: 1 comment
-
|
I use VPButton in several places on my vitepress site, with When I was just using it on just one page, I included |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
xycabcd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use VPButton in several places on my vitepress site, with
@clickpointing to functions defined in the page's<script setup>. It works just fine.When I was just using it on just one page, I included
import { VPButton } from 'vitepress/theme';in my page's<script setup>. Now I have it added to my enhanceapp:app.component('VPButton', VPButton)so I can easily use it everywhere.