forked from thomasbertet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIconView.vue
executable file
·71 lines (70 loc) · 3.19 KB
/
IconView.vue
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<template lang="pug">
component-view(v-bind:doc="doc")
v-alert(info value slot="top").mb-3
span <code>v-icon</code> and <code>v-tooltip</code> directive will not work together due to the :before pseudo element of the icon is used by the font library.
v-alert(warning value)
span Custom font libraries such as Icomoon can overwrite the <code>icon-</code> class and cause issues. While other icon packages can work, the only official support is for Material Icons, FontAwesome, and Material Design Icons.
</template>
<script>
export default {
data () {
return {
doc: {
title: 'Icons',
component: 'icon',
edit: 'IconView',
desc: 'The <code>v-icon</code> component provides a large set of glyphs to provide context to various aspects of your application. Vuetify icons utilize Google\'s Material Icons font library. For a list of all available icons, visit the official <a href="https://material.io/icons/" target="_blank" rel="noopener">Material Icons</a> page.',
examples: [
{ header: 'Standard', file: 'icons/1', desc: 'Icons come in two themes (light and dark), and four different sizes (standard, medium, large, and x-large).' },
{ header: 'Font Awesome', file: 'icons/2', desc: '<a href="http://fontawesome.io/icons/">Font Awesome</a> is also supported. Simply use the <code>fa-</code> prefixed icon name. Please note that you still need to include the Font Awesome icons in your project.' },
{ header: 'Material Design Icons', file: 'icons/3', desc: '<a href="https://materialdesignicons.com/">Material Design Icons</a> is also supported. Simply use the <code>mdi-</code> prefixed icon name. Please note that you still need to include the MDI icons in your project.' },
{ header: 'Color', file: 'icons/4', desc: 'Using color helpers you can change the color of an icon from the standard dark and light themes.' },
{ header: 'Buttons', file: 'icons/5', desc: 'Icons can be used inside of buttons to add emphasis to the action.' }
],
props: {
'v-icon': {
params: [
[
'medium',
'Boolean',
'False',
'Medium size'
],
[
'large',
'Boolean',
'False',
'Large size'
],
[
'x-large',
'Boolean',
'False',
'Extra-Large size'
],
[
'left',
'Boolean',
'False',
'Places icon on the left, when used inside a button'
],
[
'right',
'Boolean',
'False',
'Places icon on the right, when used inside a button'
],
[
'light',
'Boolean',
'False',
'Applies the light theme (default dark)'
]
]
}
}
}
}
}
}
</script>