import { cs, ellipsisOverflow } from "../utils/styles.js";
import "../utils/index.js";
import { useStyleConfig } from "../core/theme.js";
import { vui } from "../core/vui.js";
import t_default from "../t/t.js";
import "../t/index.js";
import "../core/index.js";
import { useTreeContext } from "./context.js";
import { jsx } from "react/jsx-runtime";

//#region src/tree/treeText.tsx
/** Displays text within the TreeItem. */
const TreeText = vui((props, ref) => {
	const { className, ...rest } = props;
	const styles = useStyleConfig("Tree", useTreeContext());
	return /* @__PURE__ */ jsx(t_default, {
		className: cs("vui-treeText", className),
		fontSize: "inherit",
		py: styles.item.py,
		ref,
		...ellipsisOverflow,
		...styles.text,
		...rest
	});
});
TreeText.displayName = "TreeText";
var treeText_default = TreeText;

//#endregion
export { TreeText, treeText_default as default };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=treeText.js.map