import { cs } from "../utils/styles.js";
import { useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import T from "../t/t.js";
import { useTagContext } from "./context.js";
import { jsx } from "react/jsx-runtime";

//#region src/tag/tagText.tsx
/** Displays text within the Tag. */
const TagText = vui((props, ref) => {
	const { className, ...rest } = props;
	const styles = useStyleConfig("Tag", useTagContext());
	return /* @__PURE__ */ jsx(T, {
		className: cs("vui-tagText", className),
		fontSize: "inherit",
		ref,
		...styles.text,
		...rest
	});
});
TagText.displayName = "TagText";

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