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 { 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, {
		className: cs("vui-listText", className),
		fontSize: "inherit",
		ref,
		...ellipsisOverflow,
		...styles.text,
		...rest
	});
});
ListText.displayName = "ListText";

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