@foleyjs/vue
v2.7.0
Published
Vue 3 bindings for Foley — sound effects for the interface, performed live.
Maintainers
Readme
@foleyjs/vue
Vue 3 bindings for Foley — sound effects for the interface, performed live.
npm install @foleyjs/core @foleyjs/vueimport { createApp } from "vue";
import { FoleyPlugin } from "@foleyjs/vue";
createApp(App).use(FoleyPlugin, { volume: 0.7, theme: "soft" }).mount("#app");<button v-foley="'success'">Save</button>
<a v-foley:hover="'tick'">Docs</a>
<button v-foley:press="'thock'">Key</button>The plugin registers the v-foley directive, applies your settings, and wires any data-foley-* attributes. Everything from @foleyjs/core is also re-exported.
Full documentation → · Live demo →
MIT © eakbulut and Foley contributors.
