sk-button-antd4
v0.2.26
Published
skinny-widgets button element for antd4 theme
Downloads
10
Readme
Skinny Widgets Button for Antd4 Theme
button element
npm i sk-button sk-button-antd4 --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-antd4"
></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