sk-alert

skinny-widgets alert element

Usage no npm install needed!

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

README

Skinny Widgets Alert

alert element

npm i sk-alert sk-alert-jquery --save

then 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-alert type="error">Error ! Error !</sk-alert>
<script type="module">
    import { SkAlert } from './node_modules/sk-alert/index.js';

    customElements.define('sk-alert', SkAlert);
</script>

slots

default (not specified) - alert contents

attributes

closable - close button

template

id: SkAlertTpl