@stories-js/core
Version:
Stories web components to build stories
40 lines • 1.02 kB
JavaScript
/*!
* (C) StoriesJS https://storiesjs.org - GPL-2.0 License
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { Component, h, Prop } from '@stencil/core';
import { icons } from '../../icons';
export class Icon {
render() {
return (h("svg", { viewBox: "0 0 1024 1024" },
h("path", { d: icons[this.name] })));
}
static get is() { return "stories-icon"; }
static get encapsulation() { return "shadow"; }
static get originalStyleUrls() { return {
"$": ["icon.scss"]
}; }
static get styleUrls() { return {
"$": ["icon.css"]
}; }
static get properties() { return {
"name": {
"type": "string",
"mutable": false,
"complexType": {
"original": "string",
"resolved": "string",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Icon name"
},
"attribute": "name",
"reflect": false
}
}; }
}
//# sourceMappingURL=icon.js.map