forked from robcresswell/vue-material-design-icons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.mst
42 lines (41 loc) · 787 Bytes
/
template.mst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{{=<% %>=}}
<template>
<span :aria-hidden="decorative"
:aria-label="title"
class="material-design-icon <%title%>-icon"
role="img">
<svg :fill="fillColor"
class="material-design-icon__svg"
:width="size"
:height="size"
viewBox="0 0 24 24">
<path d="<%{svgPathData}%>">
<title>{{ title }}</title>
</path>
</svg>
</span>
</template>
<script>
export default {
name: "<%name%>Icon",
props: {
title: {
type: String,
default: "<%readableName%> icon"
},
decorative: {
type: Boolean,
default: false
},
fillColor: {
type: String,
default: "currentColor"
},
size: {
type: Number,
default: 24
}
}
}
</script>
<%={{ }}=%>