UNPKG

@ionic/core

Version:
63 lines (62 loc) 2.46 kB
/*! * (C) Ionic http://ionicframework.com - MIT License */ import { Host, h } from "@stencil/core"; import { createColorClasses } from "../../utils/theme"; import { getIonMode } from "../../global/ionic-global"; /** * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use. */ export class CardSubtitle { constructor() { this.color = undefined; } render() { const mode = getIonMode(this); return (h(Host, { key: '84d820a19d9074f9c8bc61ccba1ca40062a60b73', role: "heading", "aria-level": "3", class: createColorClasses(this.color, { 'ion-inherit-color': true, [mode]: true, }) }, h("slot", { key: 'e4d07d395a1f4469a90847636083101b32b776a1' }))); } static get is() { return "ion-card-subtitle"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "ios": ["card-subtitle.ios.scss"], "md": ["card-subtitle.md.scss"] }; } static get styleUrls() { return { "ios": ["card-subtitle.ios.css"], "md": ["card-subtitle.md.css"] }; } static get properties() { return { "color": { "type": "string", "mutable": false, "complexType": { "original": "Color", "resolved": "\"danger\" | \"dark\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\" | string & Record<never, never> | undefined", "references": { "Color": { "location": "import", "path": "../../interface", "id": "src/interface.d.ts::Color" } } }, "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 } }; } }