@lsportsltd/sec-svelte
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

@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>

Readme

Keywords

none

Package Sidebar

Install

npm i @lsportsltd/sec-svelte

Weekly Downloads

2

Version

5.0.0

License

none

Unpacked Size

6.25 kB

Total Files

7

Last publish

Collaborators

  • eliranmesikalsports