JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 94
  • Score
    100M100P100Q37305F
  • License ISC

skinny-widgets button element for antd theme

Package Exports

  • sk-button-antd
  • sk-button-antd/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sk-button-antd) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Skinny Widgets Button for Antd Theme

button element

npm i sk-button sk-button-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="myButton" button-type="primary">Ok</sk-button>
<script type="module">
    import { SkButton } from './node_modules/sk-button/index.js';

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

    myButton.addEventListener('click', (event) => {
        alert('Clicked !');
    });
</script>

slots

default (not specified) - contents inside button

label - the same as label

template

id: SkButtonTpl