v-simple-icons
Version:
Simply beautiful open source icons as Vue functional components.
32 lines • 2.06 kB
JavaScript
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props";
export default {
name: 'RootsIcon',
props: {
size: {
type: String,
default: '24',
validator: function validator(s) {
return !isNaN(s) || s.length >= 2 && !isNaN(s.slice(0, s.length - 1)) && s.slice(-1) === 'x';
}
}
},
functional: true,
render: function render(h, ctx) {
var size = ctx.props.size.slice(-1) === 'x' ? ctx.props.size.slice(0, ctx.props.size.length - 1) + 'em' : parseInt(ctx.props.size) + 'px';
var attrs = ctx.data.attrs || {};
attrs.width = attrs.width || size;
attrs.height = attrs.height || size;
ctx.data.attrs = attrs;
return h("svg", _mergeJSXProps([{
attrs: {
role: "img",
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg"
}
}, ctx.data]), [h("title", ["Roots icon"]), h("path", {
attrs: {
d: "M10.285 7.975V4.041c0-.135-.109-.244-.244-.245-.137.001-.245.11-.245.245.007 2.524-.991 4.946-2.775 6.732L1.383 16.43c-.076.076-.095.194-.045.29.262.507.559.995.889 1.46.041.059.106.096.178.103h.021c.065 0 .128-.026.173-.073l5.915-5.938c1.138-1.139 1.776-2.686 1.771-4.297zM17.998.779c-.076-.043-.169-.043-.243 0-.076.045-.123.125-.123.213V11.91c0 1.622.63 3.148 1.774 4.296l1.995 2.007c.046.046.108.073.175.073l.021-.003c.07-.006.137-.044.179-.101 1.448-2.038 2.226-4.476 2.223-6.976-.007-4.295-2.293-8.262-6.001-10.426V.779zM6.367 4.041V.992c0-.086-.045-.168-.119-.213-.076-.045-.17-.045-.246 0C2.292 2.943.008 6.911 0 11.205c0 .342.018.709.057 1.12.01.095.072.177.16.21.027.01.057.014.084.015.064-.001.126-.027.172-.073l4.123-4.138c1.139-1.14 1.775-2.685 1.771-4.296v-.002zm10.614 14.6c-1.784-1.784-2.784-4.207-2.778-6.73V7.975c.001-.136-.109-.247-.244-.248-.136.002-.245.112-.245.248 0 2.543-.986 4.935-2.776 6.732l-5.914 5.937c-.097.096-.098.252-.002.349.01.011.02.02.031.026 2.023 1.455 4.455 2.238 6.947 2.235 2.492.003 4.923-.78 6.947-2.235.059-.042.095-.106.098-.18.009-.07-.016-.144-.067-.195l-1.997-2.003z"
}
})]);
}
};