@lsportsltd/sec-vue
v6.0.0
Published
> *LSports' Sports Expert Chat widget*
Downloads
9
Readme
@lsportsltd/sec-vue
LSports' Sports Expert Chat widget
This package wraps the native HTML widget element with Vue component.
Usage
Import the widget like any other Vue component, anywhere in your code.
<!-- App.vue -->
<script setup lang="ts">
import { LsportsSec } from '@lsportsltd/sec-vue';
</script>
<script lang="ts">
import type { Fixture } from '@lsportsltd/sec-vue';
import { ref } from 'vue';
const apiToken = ref<string>('123');
const fixtures = ref<Fixture[]>([]);
</script>
<template>
<LsportsSec :apiToken="apiToken" :fixtures="fixtures" />
</template>