@maz-ui/mcp 4.0.0-beta.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +264 -0
- package/bin/maz-ui-mcp.mjs +7 -0
- package/dist/mcp.d.mts +13 -0
- package/dist/mcp.d.ts +13 -0
- package/dist/mcp.mjs +586 -0
- package/docs/generated-docs/maz-accordion.doc.md +21 -0
- package/docs/generated-docs/maz-animated-counter.doc.md +17 -0
- package/docs/generated-docs/maz-animated-element.doc.md +14 -0
- package/docs/generated-docs/maz-animated-text.doc.md +14 -0
- package/docs/generated-docs/maz-avatar.doc.md +44 -0
- package/docs/generated-docs/maz-backdrop.doc.md +61 -0
- package/docs/generated-docs/maz-badge.doc.md +16 -0
- package/docs/generated-docs/maz-bottom-sheet.doc.md +21 -0
- package/docs/generated-docs/maz-btn.doc.md +30 -0
- package/docs/generated-docs/maz-card-spotlight.doc.md +16 -0
- package/docs/generated-docs/maz-card.doc.md +39 -0
- package/docs/generated-docs/maz-carousel.doc.md +16 -0
- package/docs/generated-docs/maz-chart.doc.md +10 -0
- package/docs/generated-docs/maz-checkbox.doc.md +34 -0
- package/docs/generated-docs/maz-checklist.doc.md +30 -0
- package/docs/generated-docs/maz-circular-progress-bar.doc.md +27 -0
- package/docs/generated-docs/maz-date-picker.doc.md +52 -0
- package/docs/generated-docs/maz-dialog-confirm.doc.md +24 -0
- package/docs/generated-docs/maz-dialog.doc.md +22 -0
- package/docs/generated-docs/maz-drawer.doc.md +26 -0
- package/docs/generated-docs/maz-dropdown.doc.md +42 -0
- package/docs/generated-docs/maz-dropzone.doc.md +82 -0
- package/docs/generated-docs/maz-expand-animation.doc.md +12 -0
- package/docs/generated-docs/maz-fullscreen-loader.doc.md +13 -0
- package/docs/generated-docs/maz-gallery.doc.md +17 -0
- package/docs/generated-docs/maz-icon.doc.md +18 -0
- package/docs/generated-docs/maz-input-code.doc.md +25 -0
- package/docs/generated-docs/maz-input-number.doc.md +31 -0
- package/docs/generated-docs/maz-input-phone-number.doc.md +56 -0
- package/docs/generated-docs/maz-input-price.doc.md +26 -0
- package/docs/generated-docs/maz-input-tags.doc.md +24 -0
- package/docs/generated-docs/maz-input.doc.md +54 -0
- package/docs/generated-docs/maz-lazy-img.doc.md +31 -0
- package/docs/generated-docs/maz-link.doc.md +31 -0
- package/docs/generated-docs/maz-loading-bar.doc.md +6 -0
- package/docs/generated-docs/maz-pagination.doc.md +22 -0
- package/docs/generated-docs/maz-popover.doc.md +70 -0
- package/docs/generated-docs/maz-pull-to-refresh.doc.md +31 -0
- package/docs/generated-docs/maz-radio-buttons.doc.md +33 -0
- package/docs/generated-docs/maz-radio.doc.md +33 -0
- package/docs/generated-docs/maz-reading-progress-bar.doc.md +18 -0
- package/docs/generated-docs/maz-select-country.doc.md +44 -0
- package/docs/generated-docs/maz-select.doc.md +65 -0
- package/docs/generated-docs/maz-slider.doc.md +20 -0
- package/docs/generated-docs/maz-spinner.doc.md +6 -0
- package/docs/generated-docs/maz-stepper.doc.md +29 -0
- package/docs/generated-docs/maz-switch.doc.md +31 -0
- package/docs/generated-docs/maz-table-cell.doc.md +5 -0
- package/docs/generated-docs/maz-table-row.doc.md +11 -0
- package/docs/generated-docs/maz-table-title.doc.md +5 -0
- package/docs/generated-docs/maz-table.doc.md +66 -0
- package/docs/generated-docs/maz-tabs-bar.doc.md +18 -0
- package/docs/generated-docs/maz-tabs-content-item.doc.md +11 -0
- package/docs/generated-docs/maz-tabs-content.doc.md +5 -0
- package/docs/generated-docs/maz-tabs.doc.md +17 -0
- package/docs/generated-docs/maz-textarea.doc.md +41 -0
- package/docs/src/components/index.md +8 -0
- package/docs/src/components/maz-accordion.md +80 -0
- package/docs/src/components/maz-animated-counter.md +124 -0
- package/docs/src/components/maz-animated-element.md +36 -0
- package/docs/src/components/maz-animated-text.md +36 -0
- package/docs/src/components/maz-avatar.md +179 -0
- package/docs/src/components/maz-backdrop.md +16 -0
- package/docs/src/components/maz-badge.md +222 -0
- package/docs/src/components/maz-bottom-sheet.md +398 -0
- package/docs/src/components/maz-btn.md +526 -0
- package/docs/src/components/maz-card-spotlight.md +163 -0
- package/docs/src/components/maz-card.md +447 -0
- package/docs/src/components/maz-carousel.md +127 -0
- package/docs/src/components/maz-chart.md +346 -0
- package/docs/src/components/maz-checkbox.md +168 -0
- package/docs/src/components/maz-checklist.md +414 -0
- package/docs/src/components/maz-circular-progress-bar.md +147 -0
- package/docs/src/components/maz-date-picker.md +1078 -0
- package/docs/src/components/maz-dialog-confirm.md +240 -0
- package/docs/src/components/maz-dialog.md +208 -0
- package/docs/src/components/maz-drawer.md +177 -0
- package/docs/src/components/maz-dropdown.md +650 -0
- package/docs/src/components/maz-dropzone.md +442 -0
- package/docs/src/components/maz-expand-animation.md +99 -0
- package/docs/src/components/maz-fullscreen-loader.md +58 -0
- package/docs/src/components/maz-gallery.md +85 -0
- package/docs/src/components/maz-icon.md +85 -0
- package/docs/src/components/maz-input-code.md +61 -0
- package/docs/src/components/maz-input-number.md +81 -0
- package/docs/src/components/maz-input-phone-number.md +867 -0
- package/docs/src/components/maz-input-price.md +58 -0
- package/docs/src/components/maz-input-tags.md +114 -0
- package/docs/src/components/maz-input.md +453 -0
- package/docs/src/components/maz-lazy-img.md +24 -0
- package/docs/src/components/maz-link.md +156 -0
- package/docs/src/components/maz-loading-bar.md +26 -0
- package/docs/src/components/maz-pagination.md +81 -0
- package/docs/src/components/maz-popover.md +1414 -0
- package/docs/src/components/maz-pull-to-refresh.md +49 -0
- package/docs/src/components/maz-radio-buttons.md +456 -0
- package/docs/src/components/maz-radio.md +141 -0
- package/docs/src/components/maz-reading-progress-bar.md +74 -0
- package/docs/src/components/maz-select-country.md +636 -0
- package/docs/src/components/maz-select.md +439 -0
- package/docs/src/components/maz-slider.md +191 -0
- package/docs/src/components/maz-spinner.md +93 -0
- package/docs/src/components/maz-stepper.md +418 -0
- package/docs/src/components/maz-switch.md +92 -0
- package/docs/src/components/maz-table.md +571 -0
- package/docs/src/components/maz-tabs.md +231 -0
- package/docs/src/components/maz-textarea.md +218 -0
- package/docs/src/composables/use-aos.md +34 -0
- package/docs/src/composables/use-breakpoints.md +35 -0
- package/docs/src/composables/use-dialog.md +88 -0
- package/docs/src/composables/use-display-names.md +174 -0
- package/docs/src/composables/use-form-validator.md +1149 -0
- package/docs/src/composables/use-idle-timeout.md +256 -0
- package/docs/src/composables/use-reading-time.md +168 -0
- package/docs/src/composables/use-string-matching.md +63 -0
- package/docs/src/composables/use-swipe.md +223 -0
- package/docs/src/composables/use-timer.md +130 -0
- package/docs/src/composables/use-toast.md +71 -0
- package/docs/src/composables/use-user-visibility.md +169 -0
- package/docs/src/composables/use-wait.md +62 -0
- package/docs/src/composables/use-window-size.md +18 -0
- package/docs/src/demo/DemoAuthPage.vue +178 -0
- package/docs/src/demo/DemoDashboardPage.vue +298 -0
- package/docs/src/demo/DemoProductPage.vue +135 -0
- package/docs/src/directives/click-outside.md +275 -0
- package/docs/src/directives/fullscreen-img.md +101 -0
- package/docs/src/directives/lazy-img.md +184 -0
- package/docs/src/directives/tooltip.md +458 -0
- package/docs/src/directives/zoom-img.md +127 -0
- package/docs/src/guide/cli.md +144 -0
- package/docs/src/guide/getting-started.md +284 -0
- package/docs/src/guide/icon-set.md +60 -0
- package/docs/src/guide/icons.md +481 -0
- package/docs/src/guide/mcp.md +210 -0
- package/docs/src/guide/migration-v4.md +898 -0
- package/docs/src/guide/nuxt.md +411 -0
- package/docs/src/guide/resolvers.md +697 -0
- package/docs/src/guide/themes.md +789 -0
- package/docs/src/guide/translations.md +1173 -0
- package/docs/src/guide/vue.md +243 -0
- package/docs/src/helpers/camel-case.md +14 -0
- package/docs/src/helpers/capitalize.md +51 -0
- package/docs/src/helpers/check-availability.md +14 -0
- package/docs/src/helpers/country-code-to-unicode-flag.md +213 -0
- package/docs/src/helpers/currency.md +67 -0
- package/docs/src/helpers/date.md +67 -0
- package/docs/src/helpers/debounce-callback.md +14 -0
- package/docs/src/helpers/debounce-id.md +14 -0
- package/docs/src/helpers/debounce.md +14 -0
- package/docs/src/helpers/get-country-flag-url.md +156 -0
- package/docs/src/helpers/is-client.md +14 -0
- package/docs/src/helpers/is-equal.md +14 -0
- package/docs/src/helpers/is-standalone-mode.md +14 -0
- package/docs/src/helpers/kebab-case.md +14 -0
- package/docs/src/helpers/normalize-string.md +14 -0
- package/docs/src/helpers/number.md +65 -0
- package/docs/src/helpers/pascal-case.md +14 -0
- package/docs/src/helpers/script-loader.md +14 -0
- package/docs/src/helpers/sleep.md +14 -0
- package/docs/src/helpers/snake-case.md +14 -0
- package/docs/src/helpers/throttle-id.md +14 -0
- package/docs/src/helpers/throttle.md +14 -0
- package/docs/src/index.md +555 -0
- package/docs/src/made-with-maz-ui.md +58 -0
- package/docs/src/plugins/aos.md +347 -0
- package/docs/src/plugins/dialog.md +411 -0
- package/docs/src/plugins/toast.md +349 -0
- package/docs/src/plugins/wait.md +109 -0
- package/package.json +84 -0
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: MazCard
|
|
3
|
+
description: MazCard is a standalone component to display some texts and images and also add button actions
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# {{ $frontmatter.title }}
|
|
7
|
+
|
|
8
|
+
{{ $frontmatter.description }}
|
|
9
|
+
|
|
10
|
+
<!--@include: ./../.vitepress/mixins/getting-started.md-->
|
|
11
|
+
|
|
12
|
+
## Basic usage
|
|
13
|
+
|
|
14
|
+
<MazCard class="vp-raw">
|
|
15
|
+
<template #title>
|
|
16
|
+
Cute Kitten
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<p class="maz-text-muted">
|
|
20
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
21
|
+
</p>
|
|
22
|
+
</MazCard>
|
|
23
|
+
|
|
24
|
+
```vue
|
|
25
|
+
<template>
|
|
26
|
+
<MazCard class="vp-raw" title="Cute Kitten">
|
|
27
|
+
<p class="maz-text-muted">
|
|
28
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
29
|
+
</p>
|
|
30
|
+
</MazCard>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script lang="ts" setup>
|
|
34
|
+
import { MazCard } from 'maz-ui/components'
|
|
35
|
+
</script>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Advanced usage
|
|
39
|
+
|
|
40
|
+
<MazCard :gallery="{ images: ['https://picsum.photos/480/480'], height: 300 }" class="vp-raw">
|
|
41
|
+
<template #content-title>
|
|
42
|
+
Cute Kitten
|
|
43
|
+
</template>
|
|
44
|
+
<template #content-subtitle>
|
|
45
|
+
Cat
|
|
46
|
+
</template>
|
|
47
|
+
<template #content-body>
|
|
48
|
+
<p class="maz-text-muted" style="margin: 0;">
|
|
49
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
50
|
+
</p>
|
|
51
|
+
</template>
|
|
52
|
+
<template #actions>
|
|
53
|
+
<MazBtn
|
|
54
|
+
size="md"
|
|
55
|
+
fab
|
|
56
|
+
color="destructive"
|
|
57
|
+
class="maz-mr-2"
|
|
58
|
+
>
|
|
59
|
+
<MazIcon name="trash" class="maz-text-xl" />
|
|
60
|
+
</MazBtn>
|
|
61
|
+
<MazBtn
|
|
62
|
+
size="md"
|
|
63
|
+
color="white"
|
|
64
|
+
>
|
|
65
|
+
<MazIcon name="user-plus" class="maz-text-xl" />
|
|
66
|
+
</MazBtn>
|
|
67
|
+
</template>
|
|
68
|
+
</MazCard>
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
::: details View code
|
|
72
|
+
|
|
73
|
+
```vue
|
|
74
|
+
<template>
|
|
75
|
+
<MazCard
|
|
76
|
+
:gallery="{ images: ['https://picsum.photos/520/520'], height: 300, zoom: true }"
|
|
77
|
+
>
|
|
78
|
+
<template #content-title>
|
|
79
|
+
<h3>
|
|
80
|
+
Cute Kitten
|
|
81
|
+
</h3>
|
|
82
|
+
</template>
|
|
83
|
+
<template #subtitle>
|
|
84
|
+
<span>
|
|
85
|
+
Cat
|
|
86
|
+
</span>
|
|
87
|
+
</template>
|
|
88
|
+
<template #content-body>
|
|
89
|
+
<p class="maz-text-muted">
|
|
90
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
91
|
+
</p>
|
|
92
|
+
</template>
|
|
93
|
+
<template #actions>
|
|
94
|
+
<MazBtn
|
|
95
|
+
size="md"
|
|
96
|
+
fab
|
|
97
|
+
color="destructive"
|
|
98
|
+
class="maz-mr-2"
|
|
99
|
+
>
|
|
100
|
+
<MazIcon name="trash" />
|
|
101
|
+
</MazBtn>
|
|
102
|
+
<MazBtn
|
|
103
|
+
size="md"
|
|
104
|
+
color="white"
|
|
105
|
+
>
|
|
106
|
+
<MazIcon name="user-plus" />
|
|
107
|
+
</MazBtn>
|
|
108
|
+
</template>
|
|
109
|
+
</MazCard>
|
|
110
|
+
</template>
|
|
111
|
+
|
|
112
|
+
<script lang="ts" setup>
|
|
113
|
+
import { MazCard } from 'maz-ui/components'
|
|
114
|
+
</script>
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
:::
|
|
118
|
+
|
|
119
|
+
## Orientation
|
|
120
|
+
|
|
121
|
+
When you display images, you can change the orientation of the card, available options include: `column` `row` `row-reverse` `column-reverse`
|
|
122
|
+
|
|
123
|
+
### Row
|
|
124
|
+
|
|
125
|
+
<br />
|
|
126
|
+
<MazCard :gallery="{ images: ['https://picsum.photos/450/450'] }" orientation="row" class="vp-raw">
|
|
127
|
+
<template #content-title>
|
|
128
|
+
<h3> Cute Kitten </h3>
|
|
129
|
+
</template>
|
|
130
|
+
<template #content-body>
|
|
131
|
+
<p class="maz-text-muted">
|
|
132
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
133
|
+
</p>
|
|
134
|
+
</template>
|
|
135
|
+
</MazCard>
|
|
136
|
+
|
|
137
|
+
::: details View code
|
|
138
|
+
|
|
139
|
+
```html
|
|
140
|
+
<MazCard :gallery="{ images: ['https://picsum.photos/450/450'] }" orientation="row">
|
|
141
|
+
<template #content-title>
|
|
142
|
+
<h3> Cute Kitten </h3>
|
|
143
|
+
</template>
|
|
144
|
+
<template #content-body>
|
|
145
|
+
<p class="maz-text-muted">
|
|
146
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
147
|
+
</p>
|
|
148
|
+
</template>
|
|
149
|
+
</MazCard>
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
:::
|
|
153
|
+
|
|
154
|
+
### Row Reverse
|
|
155
|
+
|
|
156
|
+
<br />
|
|
157
|
+
|
|
158
|
+
<MazCard :gallery="{ images: ['https://picsum.photos/380/380'] }" orientation="row-reverse" class="vp-raw">
|
|
159
|
+
<template #content-title>
|
|
160
|
+
<h3> Cute Kitten </h3>
|
|
161
|
+
</template>
|
|
162
|
+
<template #content-body>
|
|
163
|
+
<p class="maz-text-muted">
|
|
164
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
165
|
+
</p>
|
|
166
|
+
</template>
|
|
167
|
+
</MazCard>
|
|
168
|
+
|
|
169
|
+
::: details View code
|
|
170
|
+
|
|
171
|
+
```html
|
|
172
|
+
<MazCard
|
|
173
|
+
:gallery="{ images: ['https://picsum.photos/380/380'] }"
|
|
174
|
+
orientation="row-reverse"
|
|
175
|
+
>
|
|
176
|
+
<template #content-title>
|
|
177
|
+
<h3> Cute Kitten </h3>
|
|
178
|
+
</template>
|
|
179
|
+
<template #content-body>
|
|
180
|
+
<p class="maz-text-muted">
|
|
181
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
182
|
+
</p>
|
|
183
|
+
</template>
|
|
184
|
+
</MazCard>
|
|
185
|
+
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
:::
|
|
189
|
+
|
|
190
|
+
### Column Reverse
|
|
191
|
+
|
|
192
|
+
<br />
|
|
193
|
+
|
|
194
|
+
<MazCard
|
|
195
|
+
:gallery="{ images: ['https://picsum.photos/420/420'], height: 300 }"
|
|
196
|
+
orientation="column-reverse"
|
|
197
|
+
class="vp-raw"
|
|
198
|
+
>
|
|
199
|
+
<template #content-title>
|
|
200
|
+
<h3> Cute Kitten </h3>
|
|
201
|
+
</template>
|
|
202
|
+
<template #content-body>
|
|
203
|
+
<p class="maz-text-muted">
|
|
204
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
205
|
+
</p>
|
|
206
|
+
</template>
|
|
207
|
+
</MazCard>
|
|
208
|
+
|
|
209
|
+
::: details View code
|
|
210
|
+
|
|
211
|
+
```html
|
|
212
|
+
<MazCard
|
|
213
|
+
:gallery="{ images: ['https://picsum.photos/420/420'], height: 300 }"
|
|
214
|
+
orientation="column-reverse"
|
|
215
|
+
>
|
|
216
|
+
<template #content-title>
|
|
217
|
+
<h3> Cute Kitten </h3>
|
|
218
|
+
</template>
|
|
219
|
+
<template #content-body>
|
|
220
|
+
<p class="maz-text-muted">
|
|
221
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
222
|
+
</p>
|
|
223
|
+
</template>
|
|
224
|
+
</MazCard>
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
:::
|
|
228
|
+
|
|
229
|
+
## Collapsible
|
|
230
|
+
|
|
231
|
+
Use props: `collapsible` & `v-model:collapse-open`
|
|
232
|
+
|
|
233
|
+
<MazCard collapsible title="Lorem Ipsum is simply" block style="margin-bottom: 1rem;" class="vp-raw">
|
|
234
|
+
<p>
|
|
235
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
236
|
+
</p>
|
|
237
|
+
</MazCard>
|
|
238
|
+
|
|
239
|
+
<MazCard collapsible v-model:collapse-open="cardOpen" title="Lorem Ipsum is simply" block class="vp-raw">
|
|
240
|
+
<p>
|
|
241
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
242
|
+
</p>
|
|
243
|
+
</MazCard>
|
|
244
|
+
|
|
245
|
+
::: details View code
|
|
246
|
+
|
|
247
|
+
```vue
|
|
248
|
+
<template>
|
|
249
|
+
<MazCard collapsible title="Lorem Ipsum is simply" block style="margin-bottom: 1rem;">
|
|
250
|
+
<p>
|
|
251
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
252
|
+
</p>
|
|
253
|
+
</MazCard>
|
|
254
|
+
|
|
255
|
+
<MazCard collapsible v-model:collapse-open="cardOpen" title="Lorem Ipsum is simply" block>
|
|
256
|
+
<p>
|
|
257
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
258
|
+
</p>
|
|
259
|
+
</MazCard>
|
|
260
|
+
</template>
|
|
261
|
+
|
|
262
|
+
<script setup>
|
|
263
|
+
import { ref } from 'vue'
|
|
264
|
+
|
|
265
|
+
const cardOpen = ref(true)
|
|
266
|
+
</script>
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
<script setup>
|
|
270
|
+
import { ref } from 'vue'
|
|
271
|
+
|
|
272
|
+
const cardOpen = ref(true)
|
|
273
|
+
</script>
|
|
274
|
+
|
|
275
|
+
:::
|
|
276
|
+
|
|
277
|
+
## Linked card
|
|
278
|
+
|
|
279
|
+
To access the link, simply click the card.
|
|
280
|
+
|
|
281
|
+
- `href` is the link or `to` if you use router-link or nuxt-link
|
|
282
|
+
- `href-target` is the behavior of the link on click
|
|
283
|
+
- You can use `:scale="false"` to remove the scale animation on hover
|
|
284
|
+
|
|
285
|
+
<MazCard
|
|
286
|
+
:gallery="{ images: ['https://picsum.photos/400/400'], height: 300 }"
|
|
287
|
+
href="/components/maz-card#linked-card"
|
|
288
|
+
href-target="_blank"
|
|
289
|
+
block
|
|
290
|
+
class="vp-raw"
|
|
291
|
+
>
|
|
292
|
+
Click on the card to follow the href link
|
|
293
|
+
</MazCard>
|
|
294
|
+
|
|
295
|
+
::: details View code
|
|
296
|
+
|
|
297
|
+
```html
|
|
298
|
+
<MazCard
|
|
299
|
+
:gallery="{ images: ['https://picsum.photos/400/400'], height: 300 }"
|
|
300
|
+
href="/components/maz-card#linked-card"
|
|
301
|
+
href-target="_blank"
|
|
302
|
+
block
|
|
303
|
+
>
|
|
304
|
+
<span>
|
|
305
|
+
Click on the card to follow the href link
|
|
306
|
+
</span>
|
|
307
|
+
</MazCard>
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
:::
|
|
311
|
+
|
|
312
|
+
## Bordered
|
|
313
|
+
|
|
314
|
+
<MazCard bordered class="vp-raw">
|
|
315
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
316
|
+
</MazCard>
|
|
317
|
+
|
|
318
|
+
::: details View code
|
|
319
|
+
|
|
320
|
+
```html
|
|
321
|
+
<MazCard bordered>
|
|
322
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
323
|
+
</MazCard>
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
:::
|
|
327
|
+
|
|
328
|
+
## Elevation
|
|
329
|
+
|
|
330
|
+
<MazCard elevation :bordered="false" class="vp-raw">
|
|
331
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
332
|
+
</MazCard>
|
|
333
|
+
|
|
334
|
+
::: details View code
|
|
335
|
+
|
|
336
|
+
```html
|
|
337
|
+
<MazCard elevation :bordered="false">
|
|
338
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
339
|
+
</MazCard>
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
:::
|
|
343
|
+
|
|
344
|
+
## Gallery images
|
|
345
|
+
|
|
346
|
+
<MazCard
|
|
347
|
+
:gallery="{
|
|
348
|
+
images: ['https://picsum.photos/640/640', 'https://picsum.photos/560/560', 'https://picsum.photos/720/720', 'https://picsum.photos/360/360'],
|
|
349
|
+
displayedCount: 3,
|
|
350
|
+
remaining: true,
|
|
351
|
+
zoom: true,
|
|
352
|
+
}"
|
|
353
|
+
class="vp-raw"
|
|
354
|
+
>
|
|
355
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
356
|
+
</MazCard>
|
|
357
|
+
|
|
358
|
+
::: details View code
|
|
359
|
+
|
|
360
|
+
```html
|
|
361
|
+
<MazCard
|
|
362
|
+
:gallery="{
|
|
363
|
+
images: ['https://picsum.photos/640/640', 'https://picsum.photos/560/560', 'https://picsum.photos/720/720', 'https://picsum.photos/360/360'],
|
|
364
|
+
displayedCount: 3,
|
|
365
|
+
remaining: true,
|
|
366
|
+
zoom: true,
|
|
367
|
+
}"
|
|
368
|
+
>
|
|
369
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
370
|
+
</MazCard>
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
:::
|
|
374
|
+
|
|
375
|
+
## Footer slot
|
|
376
|
+
|
|
377
|
+
### Basic
|
|
378
|
+
|
|
379
|
+
<MazCard class="vp-raw">
|
|
380
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
381
|
+
|
|
382
|
+
<template #footer>
|
|
383
|
+
<MazBtn>
|
|
384
|
+
Button
|
|
385
|
+
</MazBtn>
|
|
386
|
+
</template>
|
|
387
|
+
</MazCard>
|
|
388
|
+
|
|
389
|
+
::: details View code
|
|
390
|
+
|
|
391
|
+
```html
|
|
392
|
+
<MazCard>
|
|
393
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
394
|
+
|
|
395
|
+
<template #footer>
|
|
396
|
+
<MazBtn>
|
|
397
|
+
Button
|
|
398
|
+
</MazBtn>
|
|
399
|
+
</template>
|
|
400
|
+
</MazCard>
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
:::
|
|
404
|
+
|
|
405
|
+
### Footer aligned on left
|
|
406
|
+
|
|
407
|
+
Use the prop option `footer-align="left"`
|
|
408
|
+
|
|
409
|
+
<MazCard footer-align="left" class="vp-raw">
|
|
410
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
411
|
+
|
|
412
|
+
<template #footer>
|
|
413
|
+
<MazBtn>
|
|
414
|
+
Button
|
|
415
|
+
</MazBtn>
|
|
416
|
+
</template>
|
|
417
|
+
</MazCard>
|
|
418
|
+
|
|
419
|
+
::: details View code
|
|
420
|
+
|
|
421
|
+
```html
|
|
422
|
+
<MazCard footer-align="left">
|
|
423
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
424
|
+
|
|
425
|
+
<template #footer>
|
|
426
|
+
<MazBtn>
|
|
427
|
+
Button
|
|
428
|
+
</MazBtn>
|
|
429
|
+
</template>
|
|
430
|
+
</MazCard>
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
:::
|
|
434
|
+
|
|
435
|
+
## Types
|
|
436
|
+
|
|
437
|
+
```ts
|
|
438
|
+
type MazGalleryImage =
|
|
439
|
+
| {
|
|
440
|
+
thumbnail?: string
|
|
441
|
+
src: string
|
|
442
|
+
alt?: string
|
|
443
|
+
}
|
|
444
|
+
| string
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
<!--@include: ./../../.vitepress/generated-docs/maz-card.doc.md-->
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: MazCarousel
|
|
3
|
+
description: MazCarousel is a standalone component to display and manage items in a row
|
|
4
|
+
head:
|
|
5
|
+
- - meta
|
|
6
|
+
- name: twitter:title
|
|
7
|
+
content: MazCarousel | Maz-UI
|
|
8
|
+
- name: twitter:description
|
|
9
|
+
content: MazCarousel is a standalone component to display and manage items in a row
|
|
10
|
+
- property: og:title
|
|
11
|
+
content: MazCarousel | Maz-UI
|
|
12
|
+
- property: og:description
|
|
13
|
+
content: MazCarousel is a standalone component to display and manage items in a row
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# {{ $frontmatter.title }}
|
|
17
|
+
|
|
18
|
+
{{ $frontmatter.description }}
|
|
19
|
+
|
|
20
|
+
<!--@include: ./../.vitepress/mixins/getting-started.md-->
|
|
21
|
+
|
|
22
|
+
<!--@include: ./../.vitepress/mixins/translated-component.md-->
|
|
23
|
+
|
|
24
|
+
## Basic usage
|
|
25
|
+
|
|
26
|
+
<MazCarousel>
|
|
27
|
+
<template #title>
|
|
28
|
+
<h4 class="maz-m-0">Carousel</h4>
|
|
29
|
+
</template>
|
|
30
|
+
<MazCard
|
|
31
|
+
v-for="(item, i) in Array(8)"
|
|
32
|
+
:key="i"
|
|
33
|
+
:gallery="{
|
|
34
|
+
images: [
|
|
35
|
+
'https://loremflickr.com/250/300'
|
|
36
|
+
]
|
|
37
|
+
}"
|
|
38
|
+
style="min-width: 250px;"
|
|
39
|
+
>
|
|
40
|
+
<template #content-title>
|
|
41
|
+
<h4 class="maz-m-0">
|
|
42
|
+
Steven Seagal
|
|
43
|
+
</h4>
|
|
44
|
+
</template>
|
|
45
|
+
<template #content-body>
|
|
46
|
+
<p class="maz-text-muted" style="margin-bottom: 0;">
|
|
47
|
+
You're awesome! You're awesome!
|
|
48
|
+
</p>
|
|
49
|
+
</template>
|
|
50
|
+
</MazCard>
|
|
51
|
+
</MazCarousel>
|
|
52
|
+
|
|
53
|
+
```vue
|
|
54
|
+
<script lang="ts" setup>
|
|
55
|
+
import { MazCarousel } from 'maz-ui/components'
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<template>
|
|
59
|
+
<MazCarousel>
|
|
60
|
+
<template #title>
|
|
61
|
+
<h4 class="maz-m-0">
|
|
62
|
+
Carousel
|
|
63
|
+
</h4>
|
|
64
|
+
</template>
|
|
65
|
+
<MazCard
|
|
66
|
+
v-for="(item, i) in Array(8)"
|
|
67
|
+
:key="i"
|
|
68
|
+
:gallery="{
|
|
69
|
+
images: [
|
|
70
|
+
'https://loremflickr.com/250/300',
|
|
71
|
+
],
|
|
72
|
+
}"
|
|
73
|
+
style="min-width: 250px;"
|
|
74
|
+
>
|
|
75
|
+
<template #title>
|
|
76
|
+
<h4 class="maz-m-0">
|
|
77
|
+
Steven Seagal
|
|
78
|
+
</h4>
|
|
79
|
+
</template>
|
|
80
|
+
<template #content-body>
|
|
81
|
+
<p class="maz-text-muted" style="margin-bottom: 0;">
|
|
82
|
+
You're awesome! You're awesome!
|
|
83
|
+
</p>
|
|
84
|
+
</template>
|
|
85
|
+
</MazCard>
|
|
86
|
+
</MazCarousel>
|
|
87
|
+
</template>
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Options
|
|
91
|
+
|
|
92
|
+
### hide-scrollbar
|
|
93
|
+
|
|
94
|
+
This options will display the component without scrollbar only when the component is not hovered, focused or active
|
|
95
|
+
|
|
96
|
+
<MazCarousel hide-scrollbar>
|
|
97
|
+
<template #title>
|
|
98
|
+
<h4 class="maz-m-0">Carousel</h4>
|
|
99
|
+
</template>
|
|
100
|
+
<MazCard
|
|
101
|
+
v-for="(item, i) in Array(8)"
|
|
102
|
+
:key="i"
|
|
103
|
+
:gallery="{
|
|
104
|
+
images: [
|
|
105
|
+
'https://loremflickr.com/250/300'
|
|
106
|
+
]
|
|
107
|
+
}"
|
|
108
|
+
style="min-width: 250px;"
|
|
109
|
+
>
|
|
110
|
+
<template #content-title>
|
|
111
|
+
<h4 class="maz-m-0">
|
|
112
|
+
Steven Seagal
|
|
113
|
+
</h4>
|
|
114
|
+
</template>
|
|
115
|
+
<template #content-body>
|
|
116
|
+
<p class="maz-text-muted" style="margin-bottom: 0;">
|
|
117
|
+
You're awesome! You're awesome!
|
|
118
|
+
</p>
|
|
119
|
+
</template>
|
|
120
|
+
</MazCard>
|
|
121
|
+
</MazCarousel>
|
|
122
|
+
|
|
123
|
+
### no-scroll-btn
|
|
124
|
+
|
|
125
|
+
This options will display the component without scroll buttons
|
|
126
|
+
|
|
127
|
+
<!--@include: ./../../.vitepress/generated-docs/maz-carousel.doc.md-->
|