chip.vue
3.28 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<script setup>
import * as demoCode from '@/views/demos/components/chip/demoCodeChip'
</script>
<template>
<VRow class="match-height">
<VCol
cols="12"
md="6"
>
<!-- 👉 Color -->
<AppCardCode
title="Color"
:code="demoCode.color"
>
<p>Use <code>color</code> prop to change the background color of chips.</p>
<DemoChipColor />
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Elevated -->
<AppCardCode
title="Elevated"
:code="demoCode.elevated"
>
<p>Use <code>elevated</code> variant option to create filled chips.</p>
<DemoChipElevated />
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Outlined -->
<AppCardCode
title="Outlined"
:code="demoCode.outlined"
>
<p>Use <code>outlined</code> variant option to create outline border chips.</p>
<DemoChipOutlined />
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Label -->
<AppCardCode
title="Label"
:code="demoCode.label"
>
<p>Label chips use the <code>v-card</code> border-radius. Use <code>label</code> prop to create label chips.</p>
<DemoChipLabel />
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Closable -->
<AppCardCode
title="Closable"
:code="demoCode.closable"
>
<p>Closable chips can be controlled with a <code>v-model</code>.</p>
<DemoChipClosable />
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Chip With Icon -->
<AppCardCode
title="With Icon"
:code="demoCode.withIcon"
>
<p>Chips can use text or any icon available in the Material Icons font library.</p>
<DemoChipWithIcon />
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Avatar -->
<AppCardCode
title="With Avatar"
:code="demoCode.withAvatar"
>
<p>Use <code>pill</code> prop to remove the <code>v-avatar</code> padding.</p>
<DemoChipWithAvatar />
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Sizes -->
<AppCardCode
title="Sizes"
:code="demoCode.sizes"
>
<p>The <code>v-chip</code> component can have various sizes from <code>x-small</code> to <code>x-large</code>.</p>
<DemoChipSizes />
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 In Selects -->
<AppCardCode
title="In Selects"
:code="demoCode.inSelects"
>
<p>Selects can use <code>chips</code> to display the selected data. Try adding your own tags below.</p>
<DemoChipInSelects />
</AppCardCode>
</VCol>
<VCol
cols="12"
md="6"
>
<!-- 👉 Expandable -->
<AppCardCode
title="Expandable"
:code="demoCode.expandable"
>
<p>Chips can be combined with <code>v-menu</code> to enable a specific set of actions for a chip.</p>
<DemoChipExpandable />
</AppCardCode>
</VCol>
</VRow>
</template>