UNPKG

@salla.sa/twilight-components

Version:
35 lines (31 loc) 1.05 kB
/*! * Crafted with ❤ by Salla */ import { r as registerInstance, h, H as Host } from './index-BHYtfMwX.js'; const sallaSkeletonCss = ":host{display:block}"; const SallaSkeleton = class { constructor(hostRef) { registerInstance(this, hostRef); /** * Set the shape type of the skeleton is it circle or normal */ this.type = 'normal'; /** * Set the skeleton width */ this.width = '100%'; /** * Set the skeleton height */ this.height = '100%'; } render() { const classes = { 's-skeleton-item': true, 's-skeleton-item-circular': this.type == 'circle', }; return (h(Host, { key: 'bbd3b59181da4c7c97a2fbf862eedebbedbe0634', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '137814e704aabda9931441f744bac595dd506d0e', class: classes }, "\u00A0"))); } }; SallaSkeleton.style = sallaSkeletonCss; export { SallaSkeleton as salla_skeleton };