@maz-ui/mcp 5.0.1-beta.0 → 5.1.0-beta.0
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/README.md +61 -228
- package/bin/maz-ui-mcp.mjs +2 -5
- package/dist/cli.d.mts +7 -0
- package/dist/cli.d.ts +7 -0
- package/dist/cli.mjs +14 -0
- package/dist/index.d.mts +340 -0
- package/dist/index.d.ts +340 -0
- package/dist/index.mjs +14 -0
- package/dist/shared/mcp.DzqVbCaL.mjs +2346 -0
- package/docs/README.md +207 -0
- package/docs/agents/agents-md.md +52 -0
- package/docs/agents/claude-rule.md +52 -0
- package/docs/components/maz-accordion.md +76 -0
- package/docs/{src/components → components}/maz-alert.md +31 -164
- package/docs/components/maz-animated-counter.md +87 -0
- package/docs/components/maz-animated-element.md +46 -0
- package/docs/components/maz-animated-text.md +53 -0
- package/docs/components/maz-avatar.md +193 -0
- package/docs/components/maz-backdrop.md +178 -0
- package/docs/{src/components → components}/maz-badge.md +26 -67
- package/docs/components/maz-bottom-sheet.md +257 -0
- package/docs/{src/components → components}/maz-btn-group.md +26 -189
- package/docs/{src/components → components}/maz-btn.md +60 -245
- package/docs/components/maz-card-spotlight.md +84 -0
- package/docs/{src/components → components}/maz-card.md +67 -192
- package/docs/components/maz-carousel.md +153 -0
- package/docs/{src/components → components}/maz-chart.md +17 -161
- package/docs/components/maz-checkbox.md +138 -0
- package/docs/components/maz-checklist.md +251 -0
- package/docs/components/maz-circular-progress-bar.md +109 -0
- package/docs/{src/components → components}/maz-code-highlight.md +15 -93
- package/docs/components/maz-container.md +241 -0
- package/docs/{src/components → components}/maz-date-picker.md +85 -454
- package/docs/components/maz-dialog-confirm.md +215 -0
- package/docs/components/maz-dialog.md +143 -0
- package/docs/components/maz-drawer.md +106 -0
- package/docs/components/maz-dropdown.md +419 -0
- package/docs/{src/components → components}/maz-dropzone.md +80 -221
- package/docs/components/maz-expand-animation.md +82 -0
- package/docs/components/maz-fullscreen-loader.md +58 -0
- package/docs/components/maz-gallery.md +79 -0
- package/docs/{src/components → components}/maz-icon.md +32 -83
- package/docs/components/maz-input-code.md +73 -0
- package/docs/components/maz-input-number.md +79 -0
- package/docs/components/maz-input-phone-number.md +536 -0
- package/docs/components/maz-input-price.md +68 -0
- package/docs/components/maz-input-tags.md +112 -0
- package/docs/{src/components → components}/maz-input.md +74 -221
- package/docs/components/maz-lazy-img.md +113 -0
- package/docs/components/maz-link.md +146 -0
- package/docs/components/maz-loading-bar.md +38 -0
- package/docs/{src/components → components}/maz-markdown-editor.md +72 -125
- package/docs/components/maz-pagination.md +82 -0
- package/docs/components/maz-popover.md +794 -0
- package/docs/{src/components → components}/maz-pull-to-refresh.md +59 -45
- package/docs/components/maz-radio-buttons.md +313 -0
- package/docs/components/maz-radio.md +119 -0
- package/docs/{src/components → components}/maz-read-more.md +31 -122
- package/docs/components/maz-reading-progress-bar.md +96 -0
- package/docs/{src/components → components}/maz-select-country.md +80 -340
- package/docs/{src/components → components}/maz-select.md +76 -206
- package/docs/components/maz-sidebar-content.md +25 -0
- package/docs/components/maz-sidebar-footer.md +25 -0
- package/docs/components/maz-sidebar-group.md +27 -0
- package/docs/components/maz-sidebar-header.md +25 -0
- package/docs/components/maz-sidebar-menu-button.md +41 -0
- package/docs/components/maz-sidebar-menu-item.md +25 -0
- package/docs/components/maz-sidebar-menu-sub.md +32 -0
- package/docs/components/maz-sidebar-menu.md +25 -0
- package/docs/components/maz-sidebar-separator.md +21 -0
- package/docs/components/maz-sidebar-trigger.md +25 -0
- package/docs/{src/components → components}/maz-sidebar.md +117 -329
- package/docs/{src/components → components}/maz-skeleton.md +27 -156
- package/docs/{src/components → components}/maz-slider.md +33 -66
- package/docs/components/maz-spinner.md +84 -0
- package/docs/{src/components → components}/maz-stepper.md +43 -185
- package/docs/components/maz-switch.md +86 -0
- package/docs/components/maz-table-cell.md +27 -0
- package/docs/components/maz-table-row.md +28 -0
- package/docs/components/maz-table-title.md +27 -0
- package/docs/components/maz-table-virtualizer.md +31 -0
- package/docs/components/maz-table.md +426 -0
- package/docs/components/maz-tabs-bar.md +43 -0
- package/docs/components/maz-tabs-content-item.md +27 -0
- package/docs/components/maz-tabs-content.md +27 -0
- package/docs/{src/components → components}/maz-tabs.md +89 -126
- package/docs/components/maz-textarea.md +255 -0
- package/docs/components/maz-ticker.md +427 -0
- package/docs/components/maz-timeline.md +304 -0
- package/docs/components/maz-ui-provider.md +26 -0
- package/docs/{src/components → components}/maz-window-mockup.md +38 -105
- package/docs/composables/use-aos.md +41 -0
- package/docs/composables/use-breakpoints.md +42 -0
- package/docs/composables/use-dialog.md +58 -0
- package/docs/{src/composables → composables}/use-display-names.md +12 -59
- package/docs/{src/composables → composables}/use-drag.md +14 -68
- package/docs/{src/composables → composables}/use-form-validator.md +22 -696
- package/docs/{src/composables → composables}/use-idle-timeout.md +13 -97
- package/docs/{src/composables → composables}/use-pull-to-refresh.md +14 -7
- package/docs/{src/composables → composables}/use-reading-time.md +20 -56
- package/docs/composables/use-string-matching.md +41 -0
- package/docs/{src/composables → composables}/use-swipe.md +14 -81
- package/docs/{src/composables → composables}/use-timer.md +12 -38
- package/docs/composables/use-toast.md +50 -0
- package/docs/{src/composables → composables}/use-user-visibility.md +14 -56
- package/docs/composables/use-wait.md +50 -0
- package/docs/composables/use-window-size.md +25 -0
- package/docs/{src/directives → directives}/click-outside.md +13 -99
- package/docs/{src/directives → directives}/fullscreen-img.md +10 -28
- package/docs/{src/directives → directives}/lazy-img.md +14 -49
- package/docs/{src/directives → directives}/tooltip.md +12 -217
- package/docs/{src/directives → directives}/zoom-img.md +11 -38
- package/docs/{src/ecosystem → ecosystem}/eslint-config.md +37 -29
- package/docs/ecosystem/icons/icon-set.md +25 -0
- package/docs/{src/ecosystem → ecosystem}/icons/index.md +22 -16
- package/docs/ecosystem/mcp.md +165 -0
- package/docs/{src/ecosystem → ecosystem}/node/exec-promise.md +12 -6
- package/docs/ecosystem/node/index.md +53 -0
- package/docs/{src/ecosystem → ecosystem}/node/logger.md +12 -6
- package/docs/{src/ecosystem → ecosystem}/node/print-banner.md +12 -4
- package/docs/ecosystem/node/setup-agents.md +102 -0
- package/docs/{src/ecosystem → ecosystem}/nuxt.md +46 -19
- package/docs/{src/ecosystem → ecosystem}/stylelint-config.md +33 -25
- package/docs/{src/ecosystem → ecosystem}/themes.md +72 -235
- package/docs/{src/ecosystem → ecosystem}/translations.md +25 -23
- package/docs/ecosystem/utils/camel-case.md +37 -0
- package/docs/ecosystem/utils/capitalize.md +37 -0
- package/docs/{src/ecosystem → ecosystem}/utils/check-availability.md +14 -8
- package/docs/{src/ecosystem → ecosystem}/utils/cookie.md +18 -12
- package/docs/ecosystem/utils/country-code-to-unicode-flag.md +128 -0
- package/docs/{src/ecosystem → ecosystem}/utils/currency.md +12 -26
- package/docs/{src/ecosystem → ecosystem}/utils/date.md +10 -24
- package/docs/ecosystem/utils/debounce-callback.md +44 -0
- package/docs/{src/ecosystem → ecosystem}/utils/debounce-id.md +14 -8
- package/docs/{src/ecosystem → ecosystem}/utils/debounce.md +14 -8
- package/docs/ecosystem/utils/fetch-locale-ip.md +39 -0
- package/docs/{src/ecosystem → ecosystem}/utils/format-json.md +11 -5
- package/docs/{src/ecosystem → ecosystem}/utils/format-phone-number.md +12 -6
- package/docs/ecosystem/utils/get-browser-locale.md +35 -0
- package/docs/ecosystem/utils/get-country-flag-url.md +67 -0
- package/docs/{src/ecosystem → ecosystem}/utils/get-error-message.md +10 -4
- package/docs/{src/ecosystem → ecosystem}/utils/idle-timeout.md +15 -9
- package/docs/{src/ecosystem → ecosystem}/utils/index.md +10 -13
- package/docs/{src/ecosystem → ecosystem}/utils/is-client.md +11 -5
- package/docs/{src/ecosystem → ecosystem}/utils/is-equal.md +14 -8
- package/docs/{src/ecosystem → ecosystem}/utils/is-ios.md +12 -6
- package/docs/ecosystem/utils/is-server.md +37 -0
- package/docs/ecosystem/utils/is-standalone-mode.md +49 -0
- package/docs/{src/ecosystem → ecosystem}/utils/kebab-case.md +10 -4
- package/docs/{src/ecosystem → ecosystem}/utils/normalize-string.md +10 -4
- package/docs/{src/ecosystem → ecosystem}/utils/number.md +10 -24
- package/docs/{src/ecosystem → ecosystem}/utils/pascal-case.md +11 -5
- package/docs/{src/ecosystem → ecosystem}/utils/prevent-ios-input-zoom.md +14 -8
- package/docs/{src/ecosystem → ecosystem}/utils/script-loader.md +16 -8
- package/docs/{src/ecosystem → ecosystem}/utils/sleep.md +10 -4
- package/docs/{src/ecosystem → ecosystem}/utils/snake-case.md +10 -4
- package/docs/{src/ecosystem → ecosystem}/utils/swipe-handler.md +14 -8
- package/docs/{src/ecosystem → ecosystem}/utils/textarea-autogrow.md +12 -6
- package/docs/{src/ecosystem → ecosystem}/utils/throttle-id.md +13 -7
- package/docs/{src/ecosystem → ecosystem}/utils/throttle.md +14 -8
- package/docs/ecosystem/utils/truthy-filter.md +37 -0
- package/docs/{src/ecosystem → ecosystem}/utils/types/deep-key-of.md +11 -5
- package/docs/{src/ecosystem → ecosystem}/utils/types/deep-partial.md +10 -4
- package/docs/ecosystem/utils/types/deep-required.md +45 -0
- package/docs/ecosystem/utils/types/flatten-object-keys.md +50 -0
- package/docs/{src/ecosystem → ecosystem}/utils/types/generic-instance-type.md +10 -4
- package/docs/{src/ecosystem → ecosystem}/utils/types/infer-maybe-ref.md +10 -4
- package/docs/ecosystem/utils/upper-first.md +38 -0
- package/docs/{src/ecosystem → ecosystem}/utils/user-visibility.md +12 -6
- package/docs/guide/ai-agents.md +237 -0
- package/docs/{src/guide → guide}/browser-support.md +22 -15
- package/docs/{src/guide → guide}/getting-started.md +34 -139
- package/docs/{src/guide → guide}/global-defaults.md +12 -11
- package/docs/{src/guide → guide}/maz-ui-provider.md +17 -16
- package/docs/{src/guide → guide}/migration-v5.md +95 -88
- package/docs/{src/guide → guide}/resolvers.md +33 -100
- package/docs/guide/tailwind.md +483 -0
- package/docs/{src/guide → guide}/vue.md +33 -39
- package/docs/manifest.json +1 -0
- package/docs/{src/plugins → plugins}/aos.md +20 -55
- package/docs/{src/plugins → plugins}/dialog.md +14 -161
- package/docs/plugins/toast.md +221 -0
- package/docs/plugins/wait.md +78 -0
- package/docs/reference/icons.md +46 -0
- package/docs/reference/tailwind-tokens.md +191 -0
- package/docs/rules.md +57 -0
- package/package.json +84 -22
- package/dist/mcp.d.mts +0 -153
- package/dist/mcp.d.ts +0 -153
- package/dist/mcp.mjs +0 -1511
- package/docs/generated-docs/maz-accordion.doc.md +0 -21
- package/docs/generated-docs/maz-alert.doc.md +0 -20
- package/docs/generated-docs/maz-animated-counter.doc.md +0 -17
- package/docs/generated-docs/maz-animated-element.doc.md +0 -14
- package/docs/generated-docs/maz-animated-text.doc.md +0 -17
- package/docs/generated-docs/maz-avatar.doc.md +0 -45
- package/docs/generated-docs/maz-backdrop.doc.md +0 -55
- package/docs/generated-docs/maz-badge.doc.md +0 -16
- package/docs/generated-docs/maz-bottom-sheet.doc.md +0 -24
- package/docs/generated-docs/maz-btn-group.doc.md +0 -20
- package/docs/generated-docs/maz-btn.doc.md +0 -33
- package/docs/generated-docs/maz-card-spotlight.doc.md +0 -16
- package/docs/generated-docs/maz-card.doc.md +0 -39
- package/docs/generated-docs/maz-carousel.doc.md +0 -17
- package/docs/generated-docs/maz-chart.doc.md +0 -10
- package/docs/generated-docs/maz-checkbox.doc.md +0 -33
- package/docs/generated-docs/maz-checklist.doc.md +0 -30
- package/docs/generated-docs/maz-circular-progress-bar.doc.md +0 -27
- package/docs/generated-docs/maz-code-highlight.doc.md +0 -11
- package/docs/generated-docs/maz-container.doc.md +0 -26
- package/docs/generated-docs/maz-date-picker.doc.md +0 -56
- package/docs/generated-docs/maz-dialog-confirm.doc.md +0 -24
- package/docs/generated-docs/maz-dialog.doc.md +0 -22
- package/docs/generated-docs/maz-drawer.doc.md +0 -25
- package/docs/generated-docs/maz-dropdown.doc.md +0 -45
- package/docs/generated-docs/maz-dropzone.doc.md +0 -82
- package/docs/generated-docs/maz-expand-animation.doc.md +0 -12
- package/docs/generated-docs/maz-fullscreen-loader.doc.md +0 -13
- package/docs/generated-docs/maz-gallery.doc.md +0 -17
- package/docs/generated-docs/maz-icon.doc.md +0 -16
- package/docs/generated-docs/maz-input-code.doc.md +0 -25
- package/docs/generated-docs/maz-input-number.doc.md +0 -33
- package/docs/generated-docs/maz-input-phone-number.doc.md +0 -62
- package/docs/generated-docs/maz-input-price.doc.md +0 -26
- package/docs/generated-docs/maz-input-tags.doc.md +0 -24
- package/docs/generated-docs/maz-input.doc.md +0 -54
- package/docs/generated-docs/maz-lazy-img.doc.md +0 -49
- package/docs/generated-docs/maz-link.doc.md +0 -31
- package/docs/generated-docs/maz-loading-bar.doc.md +0 -6
- package/docs/generated-docs/maz-markdown-editor.doc.md +0 -65
- package/docs/generated-docs/maz-pagination.doc.md +0 -21
- package/docs/generated-docs/maz-popover.doc.md +0 -79
- package/docs/generated-docs/maz-pull-to-refresh.doc.md +0 -50
- package/docs/generated-docs/maz-radio-buttons.doc.md +0 -34
- package/docs/generated-docs/maz-radio.doc.md +0 -33
- package/docs/generated-docs/maz-read-more.doc.md +0 -18
- package/docs/generated-docs/maz-reading-progress-bar.doc.md +0 -18
- package/docs/generated-docs/maz-select-country.doc.md +0 -45
- package/docs/generated-docs/maz-select.doc.md +0 -32
- package/docs/generated-docs/maz-sidebar-content.doc.md +0 -5
- package/docs/generated-docs/maz-sidebar-footer.doc.md +0 -5
- package/docs/generated-docs/maz-sidebar-group.doc.md +0 -11
- package/docs/generated-docs/maz-sidebar-header.doc.md +0 -5
- package/docs/generated-docs/maz-sidebar-menu-button.doc.md +0 -27
- package/docs/generated-docs/maz-sidebar-menu-item.doc.md +0 -5
- package/docs/generated-docs/maz-sidebar-menu-sub.doc.md +0 -16
- package/docs/generated-docs/maz-sidebar-menu.doc.md +0 -5
- package/docs/generated-docs/maz-sidebar-separator.doc.md +0 -0
- package/docs/generated-docs/maz-sidebar-trigger.doc.md +0 -5
- package/docs/generated-docs/maz-sidebar.doc.md +0 -36
- package/docs/generated-docs/maz-skeleton.doc.md +0 -12
- package/docs/generated-docs/maz-slider.doc.md +0 -20
- package/docs/generated-docs/maz-spinner.doc.md +0 -6
- package/docs/generated-docs/maz-stepper.doc.md +0 -30
- package/docs/generated-docs/maz-switch.doc.md +0 -31
- package/docs/generated-docs/maz-table-cell.doc.md +0 -5
- package/docs/generated-docs/maz-table-row.doc.md +0 -12
- package/docs/generated-docs/maz-table-title.doc.md +0 -5
- package/docs/generated-docs/maz-table-virtualizer.doc.md +0 -20
- package/docs/generated-docs/maz-table.doc.md +0 -72
- package/docs/generated-docs/maz-tabs-bar.doc.md +0 -29
- package/docs/generated-docs/maz-tabs-content-item.doc.md +0 -11
- package/docs/generated-docs/maz-tabs-content.doc.md +0 -5
- package/docs/generated-docs/maz-tabs.doc.md +0 -20
- package/docs/generated-docs/maz-textarea.doc.md +0 -46
- package/docs/generated-docs/maz-ticker.doc.md +0 -25
- package/docs/generated-docs/maz-timeline.doc.md +0 -32
- package/docs/generated-docs/maz-ui-provider.doc.md +0 -12
- package/docs/generated-docs/maz-window-mockup.doc.md +0 -23
- package/docs/src/blog/v4.md +0 -276
- package/docs/src/blog/v5.md +0 -184
- package/docs/src/changelog.md +0 -7
- package/docs/src/components/index.md +0 -8
- package/docs/src/components/maz-accordion.md +0 -80
- package/docs/src/components/maz-animated-counter.md +0 -124
- package/docs/src/components/maz-animated-element.md +0 -36
- package/docs/src/components/maz-animated-text.md +0 -36
- package/docs/src/components/maz-avatar.md +0 -227
- package/docs/src/components/maz-backdrop.md +0 -250
- package/docs/src/components/maz-bottom-sheet.md +0 -533
- package/docs/src/components/maz-card-spotlight.md +0 -163
- package/docs/src/components/maz-carousel.md +0 -231
- package/docs/src/components/maz-checkbox.md +0 -168
- package/docs/src/components/maz-checklist.md +0 -414
- package/docs/src/components/maz-circular-progress-bar.md +0 -145
- package/docs/src/components/maz-container.md +0 -363
- package/docs/src/components/maz-dialog-confirm.md +0 -240
- package/docs/src/components/maz-dialog.md +0 -164
- package/docs/src/components/maz-drawer.md +0 -181
- package/docs/src/components/maz-dropdown.md +0 -691
- package/docs/src/components/maz-expand-animation.md +0 -99
- package/docs/src/components/maz-fullscreen-loader.md +0 -58
- package/docs/src/components/maz-gallery.md +0 -85
- package/docs/src/components/maz-input-code.md +0 -61
- package/docs/src/components/maz-input-number.md +0 -81
- package/docs/src/components/maz-input-phone-number.md +0 -942
- package/docs/src/components/maz-input-price.md +0 -67
- package/docs/src/components/maz-input-tags.md +0 -114
- package/docs/src/components/maz-lazy-img.md +0 -88
- package/docs/src/components/maz-link.md +0 -178
- package/docs/src/components/maz-loading-bar.md +0 -26
- package/docs/src/components/maz-pagination.md +0 -79
- package/docs/src/components/maz-popover.md +0 -1416
- package/docs/src/components/maz-radio-buttons.md +0 -462
- package/docs/src/components/maz-radio.md +0 -142
- package/docs/src/components/maz-reading-progress-bar.md +0 -74
- package/docs/src/components/maz-spinner.md +0 -93
- package/docs/src/components/maz-switch.md +0 -92
- package/docs/src/components/maz-table.md +0 -732
- package/docs/src/components/maz-textarea.md +0 -400
- package/docs/src/components/maz-ticker.md +0 -692
- package/docs/src/components/maz-timeline.md +0 -478
- package/docs/src/composables/use-aos.md +0 -34
- package/docs/src/composables/use-breakpoints.md +0 -35
- package/docs/src/composables/use-dialog.md +0 -88
- package/docs/src/composables/use-string-matching.md +0 -63
- package/docs/src/composables/use-toast.md +0 -71
- package/docs/src/composables/use-wait.md +0 -62
- package/docs/src/composables/use-window-size.md +0 -18
- package/docs/src/ecosystem/icons/icon-set.md +0 -123
- package/docs/src/ecosystem/mcp.md +0 -210
- package/docs/src/ecosystem/node/index.md +0 -53
- package/docs/src/ecosystem/utils/camel-case.md +0 -31
- package/docs/src/ecosystem/utils/capitalize.md +0 -50
- package/docs/src/ecosystem/utils/country-code-to-unicode-flag.md +0 -213
- package/docs/src/ecosystem/utils/debounce-callback.md +0 -38
- package/docs/src/ecosystem/utils/fetch-locale-ip.md +0 -33
- package/docs/src/ecosystem/utils/get-browser-locale.md +0 -29
- package/docs/src/ecosystem/utils/get-country-flag-url.md +0 -156
- package/docs/src/ecosystem/utils/is-server.md +0 -31
- package/docs/src/ecosystem/utils/is-standalone-mode.md +0 -43
- package/docs/src/ecosystem/utils/truthy-filter.md +0 -31
- package/docs/src/ecosystem/utils/types/deep-required.md +0 -39
- package/docs/src/ecosystem/utils/types/flatten-object-keys.md +0 -44
- package/docs/src/ecosystem/utils/upper-first.md +0 -32
- package/docs/src/guide/cli.md +0 -144
- package/docs/src/guide/migration-v4.md +0 -925
- package/docs/src/guide/tailwind.md +0 -158
- package/docs/src/index.md +0 -603
- package/docs/src/made-with-maz-ui.md +0 -58
- package/docs/src/plugins/toast.md +0 -349
- package/docs/src/plugins/wait.md +0 -109
- package/docs/src/theme-editor.md +0 -21
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: MazCard
|
|
3
|
-
description: MazCard is a standalone component to display some texts and images and also add button actions
|
|
2
|
+
title: "MazCard"
|
|
3
|
+
description: "MazCard is a standalone component to display some texts and images and also add button actions"
|
|
4
|
+
package: "maz-ui"
|
|
5
|
+
url: "https://maz-ui.com/components/maz-card"
|
|
4
6
|
---
|
|
5
7
|
|
|
6
|
-
#
|
|
8
|
+
# MazCard
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
> MazCard is a standalone component to display some texts and images and also add button actions
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
- Package: `maz-ui`
|
|
13
|
+
- Import: `import MazCard from 'maz-ui/components/MazCard'`
|
|
14
|
+
- Nuxt: auto-imported by `@maz-ui/nuxt`, no import needed in a Nuxt app
|
|
15
|
+
- Web: https://maz-ui.com/components/maz-card
|
|
11
16
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<ComponentDemo expanded>
|
|
15
|
-
<MazCard title="Cute Kitten">
|
|
16
|
-
<p class="maz:text-muted">
|
|
17
|
-
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.
|
|
18
|
-
</p>
|
|
19
|
-
</MazCard>
|
|
17
|
+
> Before use it, you should install the MazUi plugin in your project, follow instructions in [Getting Started](../guide/getting-started.md)
|
|
20
18
|
|
|
21
|
-
|
|
19
|
+
## Basic usage
|
|
22
20
|
|
|
23
21
|
```vue
|
|
24
22
|
<template>
|
|
25
23
|
<MazCard class="vp-raw" title="Cute Kitten">
|
|
26
|
-
<p class="
|
|
24
|
+
<p class="text-muted">
|
|
27
25
|
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
|
|
28
26
|
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an
|
|
29
27
|
unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
@@ -36,38 +34,9 @@ description: MazCard is a standalone component to display some texts and images
|
|
|
36
34
|
</script>
|
|
37
35
|
```
|
|
38
36
|
|
|
39
|
-
</template>
|
|
40
|
-
</ComponentDemo>
|
|
41
|
-
|
|
42
37
|
## Advanced usage
|
|
43
38
|
|
|
44
|
-
|
|
45
|
-
<template #content-title>
|
|
46
|
-
Cute Kitten
|
|
47
|
-
</template>
|
|
48
|
-
<template #content-subtitle>
|
|
49
|
-
Cat
|
|
50
|
-
</template>
|
|
51
|
-
<template #content-body>
|
|
52
|
-
<p class="maz:text-muted" style="margin: 0;">
|
|
53
|
-
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.
|
|
54
|
-
</p>
|
|
55
|
-
</template>
|
|
56
|
-
<template #actions>
|
|
57
|
-
<MazBtn
|
|
58
|
-
fab
|
|
59
|
-
color="destructive"
|
|
60
|
-
class="maz:me-2"
|
|
61
|
-
>
|
|
62
|
-
<MazIcon icon="/trash.svg" class="maz:text-xl" />
|
|
63
|
-
</MazBtn>
|
|
64
|
-
<MazBtn color="surface">
|
|
65
|
-
<MazIcon icon="/user-plus.svg" class="maz:text-xl" />
|
|
66
|
-
</MazBtn>
|
|
67
|
-
</template>
|
|
68
|
-
</MazCard>
|
|
69
|
-
|
|
70
|
-
::: details View code
|
|
39
|
+
**Details: View code**
|
|
71
40
|
|
|
72
41
|
```vue
|
|
73
42
|
<template>
|
|
@@ -85,7 +54,7 @@ description: MazCard is a standalone component to display some texts and images
|
|
|
85
54
|
</span>
|
|
86
55
|
</template>
|
|
87
56
|
<template #content-body>
|
|
88
|
-
<p class="
|
|
57
|
+
<p class="text-muted">
|
|
89
58
|
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.
|
|
90
59
|
</p>
|
|
91
60
|
</template>
|
|
@@ -94,7 +63,7 @@ description: MazCard is a standalone component to display some texts and images
|
|
|
94
63
|
size="md"
|
|
95
64
|
fab
|
|
96
65
|
color="destructive"
|
|
97
|
-
class="
|
|
66
|
+
class="me-2"
|
|
98
67
|
>
|
|
99
68
|
<MazIcon icon="/trash.svg" />
|
|
100
69
|
</MazBtn>
|
|
@@ -113,27 +82,13 @@ description: MazCard is a standalone component to display some texts and images
|
|
|
113
82
|
</script>
|
|
114
83
|
```
|
|
115
84
|
|
|
116
|
-
:::
|
|
117
|
-
|
|
118
85
|
## Orientation
|
|
119
86
|
|
|
120
87
|
When you display images, you can change the orientation of the card, available options include: `column` `row` `row-reverse` `column-reverse`
|
|
121
88
|
|
|
122
89
|
### Row
|
|
123
90
|
|
|
124
|
-
|
|
125
|
-
<MazCard :gallery="{ images: ['https://placedog.net/450/450'] }" orientation="row" class="vp-raw">
|
|
126
|
-
<template #content-title>
|
|
127
|
-
<h3> Cute Kitten </h3>
|
|
128
|
-
</template>
|
|
129
|
-
<template #content-body>
|
|
130
|
-
<p class="maz:text-muted">
|
|
131
|
-
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.
|
|
132
|
-
</p>
|
|
133
|
-
</template>
|
|
134
|
-
</MazCard>
|
|
135
|
-
|
|
136
|
-
::: details View code
|
|
91
|
+
**Details: View code**
|
|
137
92
|
|
|
138
93
|
```html
|
|
139
94
|
<MazCard :gallery="{ images: ['https://placedog.net/450/450'] }" orientation="row">
|
|
@@ -141,31 +96,16 @@ When you display images, you can change the orientation of the card, available o
|
|
|
141
96
|
<h3> Cute Kitten </h3>
|
|
142
97
|
</template>
|
|
143
98
|
<template #content-body>
|
|
144
|
-
<p class="
|
|
99
|
+
<p class="text-muted">
|
|
145
100
|
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.
|
|
146
101
|
</p>
|
|
147
102
|
</template>
|
|
148
103
|
</MazCard>
|
|
149
104
|
```
|
|
150
105
|
|
|
151
|
-
:::
|
|
152
|
-
|
|
153
106
|
### Row Reverse
|
|
154
107
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
<MazCard :gallery="{ images: ['https://placedog.net/380/380'] }" orientation="row-reverse" class="vp-raw">
|
|
158
|
-
<template #content-title>
|
|
159
|
-
<h3> Cute Kitten </h3>
|
|
160
|
-
</template>
|
|
161
|
-
<template #content-body>
|
|
162
|
-
<p class="maz:text-muted">
|
|
163
|
-
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.
|
|
164
|
-
</p>
|
|
165
|
-
</template>
|
|
166
|
-
</MazCard>
|
|
167
|
-
|
|
168
|
-
::: details View code
|
|
108
|
+
**Details: View code**
|
|
169
109
|
|
|
170
110
|
```html
|
|
171
111
|
<MazCard
|
|
@@ -176,7 +116,7 @@ When you display images, you can change the orientation of the card, available o
|
|
|
176
116
|
<h3> Cute Kitten </h3>
|
|
177
117
|
</template>
|
|
178
118
|
<template #content-body>
|
|
179
|
-
<p class="
|
|
119
|
+
<p class="text-muted">
|
|
180
120
|
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.
|
|
181
121
|
</p>
|
|
182
122
|
</template>
|
|
@@ -184,28 +124,9 @@ When you display images, you can change the orientation of the card, available o
|
|
|
184
124
|
|
|
185
125
|
```
|
|
186
126
|
|
|
187
|
-
:::
|
|
188
|
-
|
|
189
127
|
### Column Reverse
|
|
190
128
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
<MazCard
|
|
194
|
-
:gallery="{ images: ['https://placedog.net/420/420'], height: 300 }"
|
|
195
|
-
orientation="column-reverse"
|
|
196
|
-
class="vp-raw"
|
|
197
|
-
>
|
|
198
|
-
<template #content-title>
|
|
199
|
-
<h3> Cute Kitten </h3>
|
|
200
|
-
</template>
|
|
201
|
-
<template #content-body>
|
|
202
|
-
<p class="maz:text-muted">
|
|
203
|
-
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.
|
|
204
|
-
</p>
|
|
205
|
-
</template>
|
|
206
|
-
</MazCard>
|
|
207
|
-
|
|
208
|
-
::: details View code
|
|
129
|
+
**Details: View code**
|
|
209
130
|
|
|
210
131
|
```html
|
|
211
132
|
<MazCard
|
|
@@ -216,32 +137,18 @@ When you display images, you can change the orientation of the card, available o
|
|
|
216
137
|
<h3> Cute Kitten </h3>
|
|
217
138
|
</template>
|
|
218
139
|
<template #content-body>
|
|
219
|
-
<p class="
|
|
140
|
+
<p class="text-muted">
|
|
220
141
|
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.
|
|
221
142
|
</p>
|
|
222
143
|
</template>
|
|
223
144
|
</MazCard>
|
|
224
145
|
```
|
|
225
146
|
|
|
226
|
-
:::
|
|
227
|
-
|
|
228
147
|
## Collapsible
|
|
229
148
|
|
|
230
149
|
Use props: `collapsible` & `v-model:collapse-open`
|
|
231
150
|
|
|
232
|
-
|
|
233
|
-
<p>
|
|
234
|
-
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.
|
|
235
|
-
</p>
|
|
236
|
-
</MazCard>
|
|
237
|
-
|
|
238
|
-
<MazCard collapsible v-model:collapse-open="cardOpen" title="Lorem Ipsum is simply" block class="vp-raw">
|
|
239
|
-
<p>
|
|
240
|
-
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.
|
|
241
|
-
</p>
|
|
242
|
-
</MazCard>
|
|
243
|
-
|
|
244
|
-
::: details View code
|
|
151
|
+
**Details: View code**
|
|
245
152
|
|
|
246
153
|
```vue
|
|
247
154
|
<template>
|
|
@@ -265,14 +172,6 @@ Use props: `collapsible` & `v-model:collapse-open`
|
|
|
265
172
|
</script>
|
|
266
173
|
```
|
|
267
174
|
|
|
268
|
-
<script setup>
|
|
269
|
-
import { ref } from 'vue'
|
|
270
|
-
|
|
271
|
-
const cardOpen = ref(true)
|
|
272
|
-
</script>
|
|
273
|
-
|
|
274
|
-
:::
|
|
275
|
-
|
|
276
175
|
## Linked card
|
|
277
176
|
|
|
278
177
|
To access the link, simply click the card.
|
|
@@ -281,17 +180,9 @@ To access the link, simply click the card.
|
|
|
281
180
|
- `href-target` is the behavior of the link on click
|
|
282
181
|
- You can use `:scale="false"` to remove the scale animation on hover
|
|
283
182
|
|
|
284
|
-
|
|
285
|
-
:gallery="{ images: ['https://placedog.net/400/400'], height: 300 }"
|
|
286
|
-
href="/components/maz-card#linked-card"
|
|
287
|
-
href-target="_blank"
|
|
288
|
-
block
|
|
289
|
-
class="vp-raw"
|
|
290
|
-
>
|
|
291
|
-
Click on the card to follow the href link
|
|
292
|
-
</MazCard>
|
|
183
|
+
- [MazCard](./maz-card.md#linked-card)
|
|
293
184
|
|
|
294
|
-
|
|
185
|
+
**Details: View code**
|
|
295
186
|
|
|
296
187
|
```html
|
|
297
188
|
<MazCard
|
|
@@ -306,15 +197,9 @@ To access the link, simply click the card.
|
|
|
306
197
|
</MazCard>
|
|
307
198
|
```
|
|
308
199
|
|
|
309
|
-
:::
|
|
310
|
-
|
|
311
200
|
## No bordered
|
|
312
201
|
|
|
313
|
-
|
|
314
|
-
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.
|
|
315
|
-
</MazCard>
|
|
316
|
-
|
|
317
|
-
::: details View code
|
|
202
|
+
**Details: View code**
|
|
318
203
|
|
|
319
204
|
```html
|
|
320
205
|
<MazCard :bordered="false">
|
|
@@ -322,15 +207,9 @@ To access the link, simply click the card.
|
|
|
322
207
|
</MazCard>
|
|
323
208
|
```
|
|
324
209
|
|
|
325
|
-
:::
|
|
326
|
-
|
|
327
210
|
## Elevation
|
|
328
211
|
|
|
329
|
-
|
|
330
|
-
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.
|
|
331
|
-
</MazCard>
|
|
332
|
-
|
|
333
|
-
::: details View code
|
|
212
|
+
**Details: View code**
|
|
334
213
|
|
|
335
214
|
```html
|
|
336
215
|
<MazCard elevation :bordered="false">
|
|
@@ -338,23 +217,9 @@ To access the link, simply click the card.
|
|
|
338
217
|
</MazCard>
|
|
339
218
|
```
|
|
340
219
|
|
|
341
|
-
:::
|
|
342
|
-
|
|
343
220
|
## Gallery images
|
|
344
221
|
|
|
345
|
-
|
|
346
|
-
:gallery="{
|
|
347
|
-
images: ['https://placedog.net/640/640', 'https://placedog.net/560/560', 'https://placedog.net/720/720', 'https://placedog.net/360/360'],
|
|
348
|
-
displayedCount: 3,
|
|
349
|
-
remaining: true,
|
|
350
|
-
zoom: true,
|
|
351
|
-
}"
|
|
352
|
-
class="vp-raw"
|
|
353
|
-
>
|
|
354
|
-
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.
|
|
355
|
-
</MazCard>
|
|
356
|
-
|
|
357
|
-
::: details View code
|
|
222
|
+
**Details: View code**
|
|
358
223
|
|
|
359
224
|
```html
|
|
360
225
|
<MazCard
|
|
@@ -369,23 +234,11 @@ To access the link, simply click the card.
|
|
|
369
234
|
</MazCard>
|
|
370
235
|
```
|
|
371
236
|
|
|
372
|
-
:::
|
|
373
|
-
|
|
374
237
|
## Footer slot
|
|
375
238
|
|
|
376
239
|
### Basic
|
|
377
240
|
|
|
378
|
-
|
|
379
|
-
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.
|
|
380
|
-
|
|
381
|
-
<template #footer>
|
|
382
|
-
<MazBtn>
|
|
383
|
-
Button
|
|
384
|
-
</MazBtn>
|
|
385
|
-
</template>
|
|
386
|
-
</MazCard>
|
|
387
|
-
|
|
388
|
-
::: details View code
|
|
241
|
+
**Details: View code**
|
|
389
242
|
|
|
390
243
|
```html
|
|
391
244
|
<MazCard>
|
|
@@ -399,23 +252,11 @@ To access the link, simply click the card.
|
|
|
399
252
|
</MazCard>
|
|
400
253
|
```
|
|
401
254
|
|
|
402
|
-
:::
|
|
403
|
-
|
|
404
255
|
### Footer aligned on left
|
|
405
256
|
|
|
406
257
|
Use the prop option `footer-align="start"`
|
|
407
258
|
|
|
408
|
-
|
|
409
|
-
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.
|
|
410
|
-
|
|
411
|
-
<template #footer>
|
|
412
|
-
<MazBtn>
|
|
413
|
-
Button
|
|
414
|
-
</MazBtn>
|
|
415
|
-
</template>
|
|
416
|
-
</MazCard>
|
|
417
|
-
|
|
418
|
-
::: details View code
|
|
259
|
+
**Details: View code**
|
|
419
260
|
|
|
420
261
|
```html
|
|
421
262
|
<MazCard footer-align="start">
|
|
@@ -429,8 +270,6 @@ Use the prop option `footer-align="start"`
|
|
|
429
270
|
</MazCard>
|
|
430
271
|
```
|
|
431
272
|
|
|
432
|
-
:::
|
|
433
|
-
|
|
434
273
|
## Types
|
|
435
274
|
|
|
436
275
|
```ts
|
|
@@ -443,4 +282,40 @@ type MazGalleryImage =
|
|
|
443
282
|
| string
|
|
444
283
|
```
|
|
445
284
|
|
|
446
|
-
|
|
285
|
+
## MazCard API
|
|
286
|
+
|
|
287
|
+
`import MazCard from 'maz-ui/components/MazCard'`
|
|
288
|
+
|
|
289
|
+
### Props
|
|
290
|
+
|
|
291
|
+
- `orientation` (`"row" | "column" | "column-reverse" | "row-reverse"`, default: `"column"`): Card variant: Must be `column | row | row-reverse | column-reverse`.
|
|
292
|
+
- `href` (`string`): Make card a link (footer area excluded).
|
|
293
|
+
- `to` (`string | et | X`): Make card a link with a router-link or nuxt-link (footer area excluded).
|
|
294
|
+
- `href-target` (`string`, default: `"_self"`): Target option of link: Muse be one of `_blank | _self | _parent | _top | framename`.
|
|
295
|
+
- `footer-align` (`"end" | "start"`, default: `"end"`): Footer text alignment along the inline axis: `start | end` (`end` = right in LTR, left in RTL).
|
|
296
|
+
- `gallery` (`MazGalleryProps`, default: `` `{ displayedCount: 3, remaining: false, zoom: !href && !to, width: 200, height: 150 }` If `href` or `to` is set, `zoom` is set to `false` ``): Images gallery props options (see `MazGallery` component).
|
|
297
|
+
- `scale` (`boolean`): scale animation on hover (only linked cards).
|
|
298
|
+
- `elevation` (`boolean`): Set elevation to card (box-shadow).
|
|
299
|
+
- `radius` (`boolean`): Set radius to card.
|
|
300
|
+
- `bordered` (`boolean`): Set border to card (in dark mode, the card is always bordered).
|
|
301
|
+
- `wrapper-class` (`ClassValue`): add classes to wrapper.
|
|
302
|
+
- `padding` (`boolean`): Remove padding from content wrapper.
|
|
303
|
+
- `overflow-hidden` (`boolean`): Hide overflow.
|
|
304
|
+
- `collapsible` (`boolean`, default: `false`): Make card collapsible.
|
|
305
|
+
- `collapse-open` (`boolean`, default: `false`, `v-model:collapse-open`): Card is open by default if `true`.
|
|
306
|
+
- `title` (`string`): Title of the card in header.
|
|
307
|
+
- `block` (`boolean`): The card will be displayed in full width.
|
|
308
|
+
|
|
309
|
+
### Events
|
|
310
|
+
|
|
311
|
+
- `@update:collapseOpen` (payload: `unknown[`): Update the collapseOpen model
|
|
312
|
+
|
|
313
|
+
### Slots
|
|
314
|
+
|
|
315
|
+
- `#title`: The title of the card
|
|
316
|
+
- `#content-title`: The title of the card Bindings: `collapseOpen: boolean` (The collapse open state of the card).
|
|
317
|
+
- `#content-subtitle`: The subtitle of the card
|
|
318
|
+
- `#content-body`: The body of the card
|
|
319
|
+
- `#default`: The content of the card Bindings: `collapseOpen: boolean` (The collapse open state of the card).
|
|
320
|
+
- `#footer`: The footer of the card
|
|
321
|
+
- `#actions`: The actions of the image gallery (only if gallery is displayed)
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "MazCarousel"
|
|
3
|
+
description: "MazCarousel is a standalone component to display and manage items in a row"
|
|
4
|
+
package: "maz-ui"
|
|
5
|
+
url: "https://maz-ui.com/components/maz-carousel"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# MazCarousel
|
|
9
|
+
|
|
10
|
+
> MazCarousel is a standalone component to display and manage items in a row
|
|
11
|
+
|
|
12
|
+
- Package: `maz-ui`
|
|
13
|
+
- Import: `import MazCarousel from 'maz-ui/components/MazCarousel'`
|
|
14
|
+
- Nuxt: auto-imported by `@maz-ui/nuxt`, no import needed in a Nuxt app
|
|
15
|
+
- Web: https://maz-ui.com/components/maz-carousel
|
|
16
|
+
|
|
17
|
+
> Before use it, you should install the MazUi plugin in your project, follow instructions in [Getting Started](../guide/getting-started.md)
|
|
18
|
+
|
|
19
|
+
**Tip:**
|
|
20
|
+
|
|
21
|
+
This component can be translated globally using the [MazUi](../ecosystem/translations.md) plugin.
|
|
22
|
+
|
|
23
|
+
## Basic usage
|
|
24
|
+
|
|
25
|
+
```vue
|
|
26
|
+
<script lang="ts" setup>
|
|
27
|
+
import MazCarousel from 'maz-ui/components/MazCarousel'
|
|
28
|
+
import MazCard from 'maz-ui/components/MazCard'
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<template>
|
|
32
|
+
<MazCarousel title="Carousel title">
|
|
33
|
+
<MazCard
|
|
34
|
+
v-for="(item, i) in Array(8)"
|
|
35
|
+
:key="i"
|
|
36
|
+
:gallery="{
|
|
37
|
+
images: [
|
|
38
|
+
'https://placedog.net/250/300?random',
|
|
39
|
+
],
|
|
40
|
+
}"
|
|
41
|
+
style="min-width: 250px;"
|
|
42
|
+
>
|
|
43
|
+
<template #title>
|
|
44
|
+
<h4 class="m-0">
|
|
45
|
+
Doggo
|
|
46
|
+
</h4>
|
|
47
|
+
</template>
|
|
48
|
+
<template #content-body>
|
|
49
|
+
<p class="text-muted" style="margin-bottom: 0;">
|
|
50
|
+
It's a beautifull doggo, no ?
|
|
51
|
+
</p>
|
|
52
|
+
</template>
|
|
53
|
+
</MazCard>
|
|
54
|
+
</MazCarousel>
|
|
55
|
+
</template>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Options
|
|
59
|
+
|
|
60
|
+
### hide-scrollbar
|
|
61
|
+
|
|
62
|
+
This options will display the component without scrollbar only when the component is not hovered, focused or active
|
|
63
|
+
|
|
64
|
+
```vue
|
|
65
|
+
<script lang="ts" setup>
|
|
66
|
+
import MazCarousel from 'maz-ui/components/MazCarousel'
|
|
67
|
+
import MazCard from 'maz-ui/components/MazCard'
|
|
68
|
+
</script>
|
|
69
|
+
|
|
70
|
+
<template>
|
|
71
|
+
<MazCarousel hide-scrollbar>
|
|
72
|
+
<template #title>
|
|
73
|
+
<h4 class="text-2xl font-bold">Carousel</h4>
|
|
74
|
+
</template>
|
|
75
|
+
<MazCard
|
|
76
|
+
v-for="(item, i) in Array(8)"
|
|
77
|
+
:key="i"
|
|
78
|
+
:gallery="{
|
|
79
|
+
images: [
|
|
80
|
+
'https://placedog.net/400/200?random'
|
|
81
|
+
]
|
|
82
|
+
}"
|
|
83
|
+
style="min-width: 250px;"
|
|
84
|
+
>
|
|
85
|
+
<template #content-title>
|
|
86
|
+
<h4 class="m-0">
|
|
87
|
+
Doggo
|
|
88
|
+
</h4>
|
|
89
|
+
</template>
|
|
90
|
+
<template #content-body>
|
|
91
|
+
<p class="text-muted" style="margin-bottom: 0;">
|
|
92
|
+
It's a beautifull doggo, no ?
|
|
93
|
+
</p>
|
|
94
|
+
</template>
|
|
95
|
+
</MazCard>
|
|
96
|
+
</MazCarousel>
|
|
97
|
+
</template>
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### hide-scroll-buttons
|
|
101
|
+
|
|
102
|
+
This options will display the component without scroll buttons
|
|
103
|
+
|
|
104
|
+
```vue
|
|
105
|
+
<script lang="ts" setup>
|
|
106
|
+
import MazCarousel from 'maz-ui/components/MazCarousel'
|
|
107
|
+
import MazCard from 'maz-ui/components/MazCard'
|
|
108
|
+
</script>
|
|
109
|
+
|
|
110
|
+
<template>
|
|
111
|
+
<MazCarousel hide-scroll-buttons title="Carousel without scroll buttons">
|
|
112
|
+
<MazCard
|
|
113
|
+
v-for="(item, i) in Array(8)"
|
|
114
|
+
:key="i"
|
|
115
|
+
:gallery="{
|
|
116
|
+
images: [
|
|
117
|
+
'https://placedog.net/300/200'
|
|
118
|
+
]
|
|
119
|
+
}"
|
|
120
|
+
style="min-width: 250px;"
|
|
121
|
+
>
|
|
122
|
+
<template #content-title>
|
|
123
|
+
<h4 class="m-0">
|
|
124
|
+
Doggo
|
|
125
|
+
</h4>
|
|
126
|
+
</template>
|
|
127
|
+
<template #content-body>
|
|
128
|
+
<p class="text-muted" style="margin-bottom: 0;">
|
|
129
|
+
It's a beautifull doggo, no ?
|
|
130
|
+
</p>
|
|
131
|
+
</template>
|
|
132
|
+
</MazCard>
|
|
133
|
+
</MazCarousel>
|
|
134
|
+
</template>
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## MazCarousel API
|
|
138
|
+
|
|
139
|
+
`import MazCarousel from 'maz-ui/components/MazCarousel'`
|
|
140
|
+
|
|
141
|
+
### Props
|
|
142
|
+
|
|
143
|
+
- `hide-scroll-buttons` (`boolean`, default: `false`): Hide display the scroll buttons.
|
|
144
|
+
- `translations` (`{ ariaLabel?: { previousButton?: string | undefined; nextButton?: string | undefined; } | undefined; }`, default: `Translations from`): Translations of the carousel.
|
|
145
|
+
- `hide-scrollbar` (`boolean`, default: `false`): Hide the scrollbar when not active.
|
|
146
|
+
- `title` (`string`): The title of the carousel.
|
|
147
|
+
|
|
148
|
+
### Slots
|
|
149
|
+
|
|
150
|
+
- `#title`
|
|
151
|
+
- `#previous-icon`
|
|
152
|
+
- `#next-icon`
|
|
153
|
+
- `#default`
|