import { computed, toValue } from "vue";
import { j as RX_NUMBER } from "./constants-CXMQW_qx.mjs";
const useNumberishToStyle = (el, unit = "px") => computed(() => {
  const value = toValue(el);
  const resolvedUnit = toValue(unit);
  return RX_NUMBER.test(String(value)) ? `${Number(value)}${resolvedUnit}` : value;
});
export {
  useNumberishToStyle as u
};
//# sourceMappingURL=useNumberishToStyle-Bce_9_TK.mjs.map
