2
0
mirror of https://github.com/tenrok/vue-tribute.git synced 2026-06-21 22:30:36 +03:00

Docs and such

This commit is contained in:
Collin Henderson
2022-01-24 12:04:50 -05:00
parent c05734b8db
commit ec27be1d20
9 changed files with 286 additions and 18 deletions
+3 -4
View File
@@ -1,21 +1,20 @@
<template>
<div id="container">
<vue-tribute :options="options">
<input type="text" class="" placeholder="@..." />
<input type="text" class="w-3/4 sm:1/2 input" placeholder="@..." />
</vue-tribute>
</div>
</template>
<script setup lang="ts">
import VueTribute from '../lib'
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' },
{ key: 'Rich Harris', value: 'Rich_Harris' },
],
positionMenu: true,
}
</script>