UNPKG

@shoelace-style/shoelace

Version:

A forward-thinking library of web components.

50 lines (47 loc) 977 B
import { skeleton_styles_default } from "./chunk.E3AD2PY7.js"; import { e } from "./chunk.UZVKBFXH.js"; import { component_styles_default } from "./chunk.K23QWHWK.js"; import { ShoelaceElement, n } from "./chunk.QAHCGRIS.js"; import { x } from "./chunk.CXZZ2LVK.js"; import { __decorateClass } from "./chunk.625AWUY7.js"; // src/components/skeleton/skeleton.component.ts var SlSkeleton = class extends ShoelaceElement { constructor() { super(...arguments); this.effect = "none"; } render() { return x` <div part="base" class=${e({ skeleton: true, "skeleton--pulse": this.effect === "pulse", "skeleton--sheen": this.effect === "sheen" })} > <div part="indicator" class="skeleton__indicator"></div> </div> `; } }; SlSkeleton.styles = [component_styles_default, skeleton_styles_default]; __decorateClass([ n() ], SlSkeleton.prototype, "effect", 2); export { SlSkeleton };