UNPKG

@aotearoan/neon

Version:

Neon is a lightweight design library of Vue 3 components with minimal dependencies.

3 lines (2 loc) 566 B
"use strict";const e=require("vue"),s=require("../../../common/utils/NeonIconRegistry.cjs.js"),c=e.defineComponent({name:"NeonIcon",props:{name:{type:String,required:!0},color:{type:String,default:null},inverse:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(n){const o=e.useAttrs(),r=e.computed(()=>{const t=s.NeonIconRegistry.getIcon(n.name);return t||console.error(`icon ${n.name} doesn't exist! Register icon with NeonIconRegistry.addIcon(name, svg);`),t});return{attrs:o,icon:r}}});module.exports=c; //# sourceMappingURL=NeonIcon.cjs.js.map