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