import { cs, ellipsisOverflow } from "../utils/styles.js";
import { useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import T from "../t/t.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, {
		className: cs("vui-treeText", className),
		fontSize: "inherit",
		py: styles.item.py,
		ref,
		...ellipsisOverflow,
		...styles.text,
		...rest
	});
});
TreeText.displayName = "TreeText";

//#endregion
export { TreeText as default };
globalThis.__vuiVersion__ = "4.0.1"
//# sourceMappingURL=treeText.js.map