2
0
mirror of https://github.com/tenrok/vue-tribute.git synced 2026-06-13 18:12:26 +03:00

Update README.md

This commit is contained in:
Collin Henderson
2022-01-25 09:10:47 -05:00
committed by GitHub
parent cecc02c008
commit 9eebf0f1fd
+8
View File
@@ -52,6 +52,14 @@ export default {
Wrap a single **text input**, **textarea**, or **contenteditable** element within the `VueTribute` component. You should then pass a [valid Tribute options object](https://github.com/zurb/tribute#initializing) to the component.
```vue
<template>
<vue-tribute :options="options">
<input type="text" placeholder="@..." />
</vue-tribute>
</template>
```
## Events
All [custom Tribute events](https://github.com/zurb/tribute#events) will work as expected. Simply attach listeners for them like you would any other event.