import { t as e } from "../../utils-B7XIe3qq.js";
import "react";
import { jsx as t, jsxs as n } from "react/jsx-runtime";
//#region src/react/primitives/spinner.tsx
var r = {
	sm: "h-4 w-4 border-2",
	md: "h-6 w-6 border-2",
	lg: "h-8 w-8 border-[3px]"
};
function i({ className: i, size: a = "md", ...o }) {
	return /* @__PURE__ */ n("span", {
		"data-slot": "spinner",
		role: "status",
		className: e("inline-flex items-center justify-center", i),
		...o,
		children: [/* @__PURE__ */ t("span", {
			className: e("border-primary/30 border-t-primary animate-spin rounded-full", r[a]),
			"aria-hidden": "true"
		}), /* @__PURE__ */ t("span", {
			className: "sr-only",
			children: "Loading..."
		})]
	});
}
//#endregion
export { i as Spinner };

//# sourceMappingURL=spinner.js.map