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

//#region src/tag/tagIcon.tsx
/** Displays an icon within the Tag. */
const TagIcon = vui((props, ref) => {
	const { className, ...rest } = props;
	const styles = useStyleConfig("Tag", useTagContext());
	return /* @__PURE__ */ jsx(Icon, {
		className: cs("vui-tagIcon", className),
		ref,
		...styles.icon,
		...rest
	});
});
TagIcon.displayName = "TagIcon";

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