This repository was archived by the owner on Nov 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +90
-0
lines changed Expand file tree Collapse file tree 3 files changed +90
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ export default new VueRouter({
13
13
path : '/card' ,
14
14
component : ( ) => import ( 'views/CardView' )
15
15
} ,
16
+ {
17
+ path : '/chips' ,
18
+ component : ( ) => import ( 'views/ChipsView' )
19
+ } ,
16
20
{
17
21
path : '/checkbox' ,
18
22
component : ( ) => import ( 'views/CheckboxView' )
Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ const state = {
13
13
route : '/card' ,
14
14
icon : 'code'
15
15
} ,
16
+ chips : {
17
+ text : 'Chips' ,
18
+ route : '/chips' ,
19
+ icon : 'code'
20
+ } ,
16
21
checkbox : {
17
22
text : 'Checkbox' ,
18
23
route : '/checkbox' ,
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <m-layout-grid-inner >
3
+ <m-layout-grid-cell :span =" 12" >
4
+ <m-typo-display :level =" 1" >Chips</m-typo-display >
5
+ <m-typo-body :level =" 2" >
6
+ <a href =" https://github.com/matsp/material-components-vue/blob/master/components/chips" >
7
+ https://github.com/matsp/material-components-vue/blob/master/components/chips
8
+ </a >
9
+ </m-typo-body >
10
+ </m-layout-grid-cell >
11
+ <m-layout-grid-cell :span =" 12" >
12
+ <m-typo-headline >Entry Chips</m-typo-headline >
13
+ <m-chip-set >
14
+ <m-chip >
15
+ <m-icon
16
+ icon =" person"
17
+ slot =" leadingIcon" />
18
+ Chip #1
19
+ </m-chip >
20
+ <m-chip >
21
+ Chip #2
22
+ <m-icon
23
+ icon =" person"
24
+ slot =" leadingIcon" />
25
+ </m-chip >
26
+ <m-chip >
27
+ Chip #3
28
+ <m-icon
29
+ icon =" person"
30
+ slot =" leadingIcon" />
31
+ </m-chip >
32
+ </m-chip-set >
33
+ </m-layout-grid-cell >
34
+ <m-layout-grid-cell :span =" 12" >
35
+ <m-typo-headline >Choice Chips</m-typo-headline >
36
+ <m-chip-set choice >
37
+ <m-chip >Chip #1</m-chip >
38
+ <m-chip >Chip #2</m-chip >
39
+ <m-chip >Chip #3</m-chip >
40
+ </m-chip-set >
41
+ </m-layout-grid-cell >
42
+ <m-layout-grid-cell :span =" 12" >
43
+ <m-typo-headline >Filter Chips</m-typo-headline >
44
+ <m-chip-set filter >
45
+ <m-chip >
46
+ Chip #1
47
+ <m-icon
48
+ icon =" cancel"
49
+ slot =" trailingIcon" />
50
+ </m-chip >
51
+ <m-chip >
52
+ Chip #2
53
+ <m-icon
54
+ icon =" cancel"
55
+ slot =" trailingIcon" />
56
+ </m-chip >
57
+ <m-chip >
58
+ Chip #3
59
+ <m-icon
60
+ icon =" cancel"
61
+ slot =" trailingIcon" />
62
+ </m-chip >
63
+ </m-chip-set >
64
+ </m-layout-grid-cell >
65
+ </m-layout-grid-inner >
66
+ </template >
67
+
68
+ <script >
69
+ import Vue from ' vue'
70
+ import Chips from ' ../../dist/chips'
71
+
72
+ Vue .use (Chips)
73
+
74
+ export default {
75
+ }
76
+ </script >
77
+
78
+ <style lang="scss">
79
+ @import " ../../dist/chips/styles" ;
80
+ </style >
81
+
You can’t perform that action at this time.
0 commit comments