sk-button-antd

    0.2.8 • Public • Published

    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

    Keywords

    none

    Install

    npm i sk-button-antd

    DownloadsWeekly Downloads

    2

    Version

    0.2.8

    License

    ISC

    Unpacked Size

    1.96 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar