sk-tabs-antd

skinny-widgets tabs element for antd theme

Usage no npm install needed!

<script type="module">
  import skTabsAntd from 'https://cdn.skypack.dev/sk-tabs-antd';
</script>

README

Skinny Widgets Tabs for Antd Theme

tabs element

npm i sk-tabs sk-tabs-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-tabs id="tabs">
    <sk-tab title="foo">
        some foo tab contents
    </sk-tab>
    <sk-tab title="bar">
        some bar tab contents
    </sk-tab>
    <sk-tab title="baz">
        some baz tab contents
    </sk-tab>
</sk-tabs>
<script type="module">
    import { SkTabs } from './node_modules/sk-tabs/index.js';

    customElements.define('sk-tabs', SkTabs);
</script>

attributes

disabled - all tabs disabled

template

id: SkTabsTpl