UNPKG

@salla.sa/twilight-components

Version:
37 lines (32 loc) 1.05 kB
/*! * Crafted with ❤ by Salla */ 'use strict'; var index = require('./index-B99uI20k.js'); const sallaSkeletonCss = ":host{display:block}"; const SallaSkeleton = class { constructor(hostRef) { index.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 (index.h(index.Host, { key: '366d9fcd96b22edc9b5cdc07f8d8367fdbc5c574', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, index.h("div", { key: 'b4ad9adc7d8ce69aeaeaa1cf287726fa69018730', class: classes }, "\u00A0"))); } }; SallaSkeleton.style = sallaSkeletonCss; exports.salla_skeleton = SallaSkeleton;