@lsportsltd/sec-svelte
v6.0.0
Published
> *LSports' Sports Expert Chat widget*
Downloads
11
Readme
@lsportsltd/sec-svelte
LSports' Sports Expert Chat widget
This package wraps the native HTML widget element with Svelte component.
Usage
Import the widget like any other Svelte component, anywhere in your code.
<!-- App.svelte -->
<script context="module" lang='ts'>
import { LsportsSec } from '@lsportsltd/sec-svelte';
</script>
<script lang="ts">
import type { Fixture } from '@lsportsltd/sec-svelte';
export let apiToken: string;
export let fixtures: Fixture[];
</script>
<main>
<LsportsSec {apiToken} {fixtures}/>
</main>