artistic-elements
Version:
artistic web components
55 lines (52 loc) • 1.14 kB
JavaScript
import {
__decorateClass,
e,
e2,
i,
s,
y
} from "./chunk.FMUK5F65.js";
// src/artistic/triangle-right.ts
var ArtisticTriangleRight = class extends s {
constructor() {
super(...arguments);
this.heightTop = "5rem";
this.heightBottom = "5rem";
this.width = "10rem";
this.color = "#f0f";
}
render() {
const style = `
border-top: ${this.heightTop} solid transparent;
border-left: ${this.width} solid ${this.color};
border-bottom: ${this.heightBottom} solid transparent;
`;
return y`<div style="${style}">
<slot></slot>
</div>`;
}
};
ArtisticTriangleRight.styles = i`
div {
width: 0;
height: 0;
}
`;
__decorateClass([
e2()
], ArtisticTriangleRight.prototype, "heightTop", 2);
__decorateClass([
e2()
], ArtisticTriangleRight.prototype, "heightBottom", 2);
__decorateClass([
e2()
], ArtisticTriangleRight.prototype, "width", 2);
__decorateClass([
e2()
], ArtisticTriangleRight.prototype, "color", 2);
ArtisticTriangleRight = __decorateClass([
e("artistic-triangle-right")
], ArtisticTriangleRight);
export {
ArtisticTriangleRight
};