@stories-js/core
Version:
Stories web components to build stories
45 lines • 1.42 kB
JavaScript
/*!
* (C) StoriesJS https://storiesjs.org - GPL-2.0 License
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { Component, Host, h, Prop } from '@stencil/core';
import { createColorClasses } from '../../utils';
export class Badge {
render() {
return (h(Host, { class: createColorClasses(this.color, {}) },
h("slot", null)));
}
static get is() { return "stories-badge"; }
static get encapsulation() { return "shadow"; }
static get originalStyleUrls() { return {
"$": ["badge.scss"]
}; }
static get styleUrls() { return {
"$": ["badge.css"]
}; }
static get properties() { return {
"color": {
"type": "string",
"mutable": false,
"complexType": {
"original": "Color",
"resolved": "string",
"references": {
"Color": {
"location": "import",
"path": "../../types"
}
}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "The color to use from your application's color palette.\nDefault options are: `\"primary\"`, `\"secondary\"`, `\"tertiary\"`, `\"success\"`, `\"warning\"`, `\"danger\"`, `\"light\"`, `\"medium\"`, and `\"dark\"`.\nFor more information on colors, see [theming](/docs/theming/basics)."
},
"attribute": "color",
"reflect": true
}
}; }
}
//# sourceMappingURL=badge.js.map