phosphor-vue
Version:
A clean and friendly icon family for Vue, too!
29 lines (27 loc) • 455 B
JavaScript
const PropValidator = {
color: String,
size: [String, Number],
weight: {
type: String
},
mirrored: Boolean
};
const ContextGetter = {
contextWeight: {
from: "weight",
default: "regular"
},
contextSize: {
from: "size",
default: "1em"
},
contextColor: {
from: "color",
default: "currentColor"
},
contextMirrored: {
from: "mirrored",
default: false
}
};
export { ContextGetter, PropValidator };