@foleyjs/vue
@foleyjs/vue
Vue 3 bindings for Foley — sound effects for the interface, performed live.
npm install @foleyjs/core @foleyjs/vue
import { 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.
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.9.0 | >=3 | MIT | |
| 2.8.1 | >=3 | MIT | |
| 2.8.0 | >=3 | MIT | |
| 2.7.0 | >=3 | MIT | |
| 2.6.1 | >=3 | MIT | |
| 2.6.0 | >=3 | MIT | |
| 2.5.0 | >=3 | MIT | |
| 2.4.0 | >=3 | MIT | |
| 2.3.0 | >=3 | MIT |