sk-spinner-antd

0.2.26 • Public • Published

Skinny Widgets Spinner for Antd Theme

spinner element

npm i sk-spinner sk-spinner-antd --save

then add the following to your html

<sk-config
    theme="antd"
    base-path="/node_modules/sk-core/src"
    theme-path="/node_modules/sk-theme-antd"
></sk-config>
<sk-button id="skButton" button-type="primary">Show Dialog</sk-button>

<sk-spinner id="skSpinner"></sk-spinner>

<script type="module">
    import { SkSpinner } from '/node_modules/sk-spinner/sk-spinner.js';
    import { SkButton } from '/node_modules/sk-button/sk-button.js';

    customElements.define('sk-spinner', SkSpinner);
    customElements.define('sk-button', SkButton);

    skButton.addEventListener('click', (event) => {
        skSpinner.dispatchEvent(new CustomEvent('toggle'));
    });
</script>

template

id: SkSpinnerTpl

Readme

Keywords

none

Package Sidebar

Install

npm i sk-spinner-antd

Weekly Downloads

0

Version

0.2.26

License

ISC

Unpacked Size

2.3 kB

Total Files

5

Last publish

Collaborators

  • syncro