MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / render

Method render

core/src/components/label/label.tsx:105–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 }
104
105 render() {
106 const position = this.position;
107 const mode = getIonMode(this);
108 return (
109 <Host
110 class={createColorClasses(this.color, {
111 [mode]: true,
112 'in-item-color': hostContext('ion-item.ion-color', this.el),
113 [`label-${position}`]: position !== undefined,
114 [`label-no-animate`]: this.noAnimate,
115 'label-rtl': document.dir === 'rtl',
116 })}
117 >
118 <slot></slot>
119 </Host>
120 );
121 }
122}

Callers

nothing calls this directly

Calls 3

getIonModeFunction · 0.90
createColorClassesFunction · 0.90
hostContextFunction · 0.90

Tested by

no test coverage detected