2
0
mirror of https://github.com/tenrok/vue-tribute.git synced 2026-06-06 09:52:27 +03:00
Files
vue-tribute/demo/BasicExample.vue
T
Collin Henderson 03dc35436b Initial v2 commit
2022-01-24 09:40:45 -05:00

22 lines
504 B
Vue

<template>
<div id="container">
<vue-tribute :options="options">
<input type="text" class="" placeholder="@..." />
</vue-tribute>
</div>
</template>
<script setup lang="ts">
import VueTribute from '../lib'
const options = {
trigger: '@',
values: [
{ key: 'Collin Henderson', value: 'syropian' },
{ key: 'Sarah Drasner', value: 'sarah_edo' },
{ key: 'Evan You', value: 'youyuxi' },
{ key: 'Adam Wathan', value: 'adamwathan' },
],
positionMenu: true,
}
</script>