sk-checkbox-default

0.2.26 • Public • Published

Skinny Widgets Checkbox for Default Theme

checkbox element

npm i sk-checkbox sk-checkbox-default --save

then add the following to your html

<sk-config
    theme="default"
    base-path="/node_modules/sk-core/src"
    theme-path="/node_modules/sk-theme-default"
></sk-config>
<sk-checkbox id="myCheckbox">Checkbox</sk-checkbox>
<script type="module">
    import { SkCheckbox } from './node_modules/sk-checkbox/index.js';

    customElements.define('sk-checkbox', SkCheckbox);

    myCheckbox.addEventListener('change', (event) => {
        alert('Changed !');
    });
</script>

slots

default (not specified) - draws label for input

label - draws label for input

attributes

value - value syncronized with internal native element

disabled - disabled attribute syncronized with internal native element

template

id: SkCheckboxTpl

Readme

Keywords

none

Package Sidebar

Install

npm i sk-checkbox-default

Weekly Downloads

26

Version

0.2.26

License

ISC

Unpacked Size

3.78 kB

Total Files

5

Last publish

Collaborators

  • syncro