@lsportsltd/sec-core
v1.5.2
Published
Sports Expert Chat
Downloads
27
Readme
@lsportsltd/sec-core
LSports' Sports Expert Chat widget
This is the core package which contains the widget as a raw custom HTML element.
Built with StencilJS, the widget can be used without any framework, on any browser and platform
Usage
define the custom elements in your main entry
import { defineCustomElements } from '@lsportsltd/sec-core';
defineCustomElements();
This will register the widget and all its components to the custom elements registry
you can use the widget anywhere like any other HTML element
<lsports-sec api-token='XXX'></lsports-sec>
import type { Fixture } from '@lsportsltd/sec-core';
const fixtures: Fixture[] = [];
const widget = document.querySelector('lsports-sec');
widget.fixtures = fixtures;
Frameworks Support
The widget is native HTML element and can be used anywhere, but we also provide dedicated packages for major frameworks:
- @lsportsltd/sec-ng
- @lsportsltd/sec-react
- @lsportsltd/sec-svelte
- @lsportsltd/sec-vue
Check out our docs for more information