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 { useListContext } from "./context.js";
import { jsx } from "react/jsx-runtime";

//#region src/list/listText.tsx
/** Displays text within the ListItem. */
const ListText = vui((props, ref) => {
	const { className, ...rest } = props;
	const styles = useStyleConfig("List", useListContext());
	return /* @__PURE__ */ jsx(t_default, {
		className: cs("vui-listText", className),
		fontSize: "inherit",
		ref,
		...ellipsisOverflow,
		...styles.text,
		...rest
	});
});
ListText.displayName = "ListText";
var listText_default = ListText;

//#endregion
export { ListText, listText_default as default };
globalThis.__vuiVersion__ = "4.0.0-beta.1"
//# sourceMappingURL=listText.js.map