@ionic/core
Version:
Base components for Ionic
23 lines (19 loc) • 723 B
JavaScript
/*!
* (C) Ionic http://ionicframework.com - MIT License
*/
import { r as registerInstance, e as getIonMode, h, j as Host } from './index-B_U9CtaY.js';
import { c as createColorClasses } from './theme-DiVJyqlX.js';
const textCss = ":host(.ion-color){color:var(--ion-color-base)}";
const Text = class {
constructor(hostRef) {
registerInstance(this, hostRef);
}
render() {
const mode = getIonMode(this);
return (h(Host, { key: '361035eae7b92dc109794348d39bad2f596eb6be', class: createColorClasses(this.color, {
[mode]: true,
}) }, h("slot", { key: 'c7b8835cf485ba9ecd73298f0529276ce1ea0852' })));
}
};
Text.style = textCss;
export { Text as ion_text };