2
0
mirror of https://github.com/tenrok/vue-tribute.git synced 2026-05-17 10:29:40 +03:00
Files
vue-tribute/demo/ContentEditableExample.vue
Collin Henderson ec27be1d20 Docs and such
2022-01-24 12:04:50 -05:00

21 lines
509 B
Vue

<template>
<div id="container">
<vue-tribute :options="options">
<div class="w-3/4 sm:1/2 input" placeholder="@..." contenteditable>@</div>
</vue-tribute>
</div>
</template>
<script setup lang="ts">
import { VueTribute } from '../lib'
const options = {
trigger: '@',
values: [
{ key: 'Sarah Drasner', value: 'sarah_edo' },
{ key: 'Evan You', value: 'youyuxi' },
{ key: 'Adam Wathan', value: 'adamwathan' },
{ key: 'Rich Harris', value: 'Rich_Harris' },
],
}
</script>