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

//#region src/tag/tagButton.tsx
/** Displays a button within the Tag. */
const TagButton = vui((props, ref) => {
	const { className, ...rest } = props;
	const mergedProps = {
		...useTagContext(),
		...props
	};
	const styles = useStyleConfig("Tag", useTagContext());
	return /* @__PURE__ */ jsx(Button, {
		borderColor: "transparent",
		className: cs("vui-tagButton", className),
		disabled: mergedProps.disabled,
		hoverBorderColor: "transparent",
		icon: "uiTimes",
		mr: -.5,
		ref,
		variant: mergedProps.variant,
		...styles.button,
		...rest
	});
});
TagButton.displayName = "TagButton";

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