-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
vue #2
Comments
utterances-vue-componentType safety vue component for utterances Vue component for utterances 🔮 Utterances is a lightweight comments widget built on GitHub issues, for blog comments, wiki pages and more. ✨ Features
⚡ Quick viewLocally Local import of components is recommended. <template>
<Utterances
repo="TomokiMiyauci/utterances-component"
theme="github-dark"
issueTerm="pathname"
/>
</template>
<script setup lang="ts">
import { Utterances } from 'utterances-vue-component'
</script> Globally You can also register a component globally. import { createApp } from 'vue'
import App from './App.vue'
import { plugin } from 'utterances-vue-component'
createApp(App).use(plugin).mount('#app') <template>
<Utterances
repo="TomokiMiyauci/me"
issue-term="pathname"
theme="github-light"
/>
</template> 💫 Install📦 Node.jsnpm i utterances-vue-component
or
yarn add utterances-vue-component 🌐 BrowserThe module that bundles the dependencies is obtained from import like this: import { Utterances } from 'https://cdn.skypack.dev/utterances-vue-component' peerDependency
📝 APIPropsIt has a strict type definition.
declare type Theme =
| 'github-light'
| 'github-dark'
| 'preferred-color-scheme'
| 'github-dark-orange'
| 'icy-dark'
| 'dark-blue'
| 'photon-dark'
| 'boxy-light'
declare type Term = 'pathname' | 'url' | 'title' | 'og:title' 1If you chose "Issue title contains specific term", specify the specific term as string array. 2Unfortunately, props in vue cannot be exclusively defined. You can specify either an 🤝 ContributingContributions, issues and feature requests are welcome! 🌱 Show your supportGive a ⭐️ if this project helped you! 💡 LicenseCopyright © 2021-present TomokiMiyauci. Released under the MIT license |
Lookin good mate |
Vite App
https://utterances-component-58axit393-tomoki-miyauci.vercel.app/vue
The text was updated successfully, but these errors were encountered: