Package Exports
- sk-button-default
- sk-button-default/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-default) 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 Default Theme
button element
npm i sk-button sk-button-jquery --savethen add the following to your html
<sk-config
theme="jquery"
base-path="/node_modules/sk-core/src"
theme-path="/node_modules/sk-theme-jquery"
></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