From e9809880933fe8369c0ae56f92bcd23f8a584353 Mon Sep 17 00:00:00 2001 From: Mohamed Eslam <60846785+MohamedEslam04@users.noreply.github.com> Date: Mon, 5 Jan 2026 16:32:55 +0200 Subject: [PATCH 1/4] feat: add `pauseOnTouch` prop to Marquee component and update pnpm manager version. --- playgrounds/nuxt/app/pages/components/marquee.vue | 11 ++++------- src/runtime/components/Marquee.vue | 9 ++++++++- src/theme/marquee.ts | 5 +++++ 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/playgrounds/nuxt/app/pages/components/marquee.vue b/playgrounds/nuxt/app/pages/components/marquee.vue index 763aa4d0e0..d9a43689b7 100644 --- a/playgrounds/nuxt/app/pages/components/marquee.vue +++ b/playgrounds/nuxt/app/pages/components/marquee.vue @@ -5,6 +5,7 @@ const orientations = Object.keys(theme.variants.orientation) const orientation = ref('horizontal' as keyof typeof theme.variants.orientation) const pauseOnHover = ref(false) +const pauseOnTouch = ref(false) const reverse = ref(false) const overlay = ref(false) @@ -13,17 +14,13 @@ const overlay = ref(false) + - + diff --git a/src/runtime/components/Marquee.vue b/src/runtime/components/Marquee.vue index 5c6e3690c2..749577677a 100644 --- a/src/runtime/components/Marquee.vue +++ b/src/runtime/components/Marquee.vue @@ -16,6 +16,11 @@ export interface MarqueeProps { * @defaultValue false */ pauseOnHover?: boolean + /** + * Pause the marquee on touch. + * @defaultValue false + */ + pauseOnTouch?: boolean /** * Reverse the direction of the marquee. * @defaultValue false @@ -62,6 +67,7 @@ const appConfig = useAppConfig() as Marquee['AppConfig'] const ui = computed(() => tv({ extend: tv(theme), ...(appConfig.ui?.marquee || {}) })({ pauseOnHover: props.pauseOnHover, + pauseOnTouch: props.pauseOnTouch, orientation: props.orientation, reverse: props.reverse, overlay: props.overlay @@ -69,7 +75,8 @@ const ui = computed(() => tv({ extend: tv(theme), ...(appConfig.ui?.marquee || {