@progress/kendo-vue-labels
Version:
46 lines (45 loc) • 1.22 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { defineComponent as e, createVNode as r } from "vue";
import { packageMetadata as i } from "./package-metadata.mjs";
import { validatePackage as n, getDefaultSlots as a } from "@progress/kendo-vue-common";
const p = /* @__PURE__ */ e({
name: "KendoHint",
props: {
id: String,
direction: {
type: String,
default: "start",
validator: function(t) {
return ["start", "end"].includes(t);
}
}
},
created() {
n(i);
},
computed: {
hintClassName() {
return {
"k-form-hint": !0,
"k-text-start": this.$props.direction === "start",
"k-text-end": this.$props.direction === "end"
};
}
},
render() {
const t = a(this);
return r("div", {
id: this.$props.id,
class: this.hintClassName
}, [t]);
}
});
export {
p as Hint
};