maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
30 lines (29 loc) • 1.24 kB
JavaScript
import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot } from "vue";
import { g as getColor } from "../chunks/types.D0Bp_UhS.js";
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
import '../assets/MazBadge.CmPr9rE1.css';const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "MazBadge",
props: {
color: { default: "primary" },
size: { default: "0.8em" },
nowrap: { type: Boolean, default: !1 },
outlined: { type: Boolean, default: !1 },
pastel: { type: Boolean, default: !1 },
roundedSize: { default: "md" }
},
setup(__props) {
return (_ctx, _cache) => (openBlock(), createElementBlock("span", {
class: normalizeClass(["m-badge m-reset-css", [
`--${unref(getColor)(__props.color)}`,
{ "--outlined": __props.outlined, "--pastel": __props.pastel, "--nowrap": __props.nowrap },
`--rounded-${__props.roundedSize}`
]]),
style: normalizeStyle({ fontSize: __props.size })
}, [
renderSlot(_ctx.$slots, "default", {}, void 0, !0)
], 6));
}
}), MazBadge = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d261aaa3"]]);
export {
MazBadge as default
};