Logo strips
Show customers or partners in a continuous row.
Components / Display
A seamless, pausable looping ticker for logos, quotes, or announcements that stops under reduced motion.
Last changed in version 0.13.0: Add avatar groups and chips, expand the block gallery, and improve component colors, spacing, and motion.
bunx --bun @getweini/cli@latest add marqueeImport the files copied by the install command, then place the component in your Vue template. The text and values in the example belong to your app; change them to fit your task.
<script setup lang="ts">
import Marquee from './components/ui/marquee/Marquee.vue'
const frameworks = [
{ name: 'Weini', href: '/', src: '/frameworks/weini.svg' },
{ name: 'Vue', href: 'https://vuejs.org/', src: '/frameworks/vue.svg' },
{ name: 'Nuxt', href: 'https://nuxt.com/', src: '/frameworks/nuxt.svg' },
{ name: 'Tailwind CSS', href: 'https://tailwindcss.com/', src: '/frameworks/tailwind.svg' },
]
</script>
<template>
<Marquee aria-label="Frameworks and tools" gap="1.5rem" class="w-full max-w-lg">
<a
v-for="framework in frameworks"
:key="framework.name"
:href="framework.href"
:aria-label="framework.name"
target="_blank"
rel="noopener noreferrer"
class="inline-flex size-12 shrink-0 items-center justify-center rounded-ui text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"
>
<span
v-if="framework.name === 'Weini'"
aria-hidden="true"
class="size-12 bg-current [mask:url('/frameworks/weini.svg')_center/contain_no-repeat]"
/>
<img
v-else
:src="framework.src"
:alt="framework.name"
width="48"
height="48"
class="size-12 object-contain"
>
</a>
</Marquee>
</template>Place items inside the marquee. It duplicates them for a seamless loop and measures the duration from speed, which defaults to 20 pixels per second. The primary example uses the docs site's /frameworks/*.svg logo assets; those paths belong to the docs app and can be replaced with your own image URLs. Each image includes fixed dimensions to prevent layout shift and meaningful alt text; the cloned loop stays hidden from assistive technology.
Show customers or partners in a continuous row.
Scroll short news or quotes vertically in a fixed-height area.
Bind v-model:paused to a visible pause button. Moving content over five seconds needs a pause mechanism (WCAG 2.2.2).
<script setup lang="ts">
import { ref } from 'vue'
import Button from './components/ui/button/Button.vue'
import Marquee from './components/ui/marquee/Marquee.vue'
const paused = ref(false)
const headlines = ['Release 0.7 is out', 'New components ship today', 'Docs now cover RTL']
</script>
<template>
<div class="grid w-full max-w-lg gap-3">
<Marquee v-model:paused="paused" aria-label="Latest news" :speed="60" gap="2rem">
<span v-for="line in headlines" :key="line" class="text-sm">{{ line }}</span>
</Marquee>
<Button variant="outline" size="sm" class="justify-self-start" @click="paused = !paused">
{{ paused ? 'Resume news ticker' : 'Pause news ticker' }}
</Button>
</div>
</template>Give the marquee a height and set orientation and reverse.
<script setup lang="ts">
import Marquee from './components/ui/marquee/Marquee.vue'
const quotes = [
'"Fast to adopt."',
'"Easy to restyle."',
'"Accessible by default."',
'"Great docs."',
]
</script>
<template>
<Marquee orientation="vertical" reverse :speed="30" gap="1rem" class="h-40 w-64">
<p v-for="quote in quotes" :key="quote" class="rounded-ui bg-muted px-4 py-2 text-sm">
{{ quote }}
</p>
</Marquee>
</template>Every public prop, model, event, slot, and exposed member of the installed Vue parts is listed below. “Not set” means you can leave that value out; “Required” means you must provide it. Native HTML attributes also work where the component uses a native element.
| Name | Type or signature | Default | What it does |
|---|---|---|---|
speedprop | number | undefined | 20 | Scroll speed in pixels per second. Defaults to 20. |
reverseprop | boolean | undefined | Not set | Move toward inline end horizontally, or toward the bottom vertically. |
pauseOnHoverprop | boolean | undefined | true | Pause while the pointer or focus is inside. |
gapprop | string | undefined | "1rem" | Space between items and between the two loops, as any CSS length. |
orientationprop | "horizontal" | "vertical" | undefined | "horizontal" | Arrange items horizontally or vertically. |
pausedmodel | boolean | undefined | false | Current paused value. Use the matching v-model binding to update it. |
update:pausedevent | [value: boolean] | — | Requests a new paused value from the parent. |
defaultslot | (() => unknown) | undefined | Optional | Content shown inside Marquee. |
pausedexposed | boolean | — | Access paused from a component template ref. |
toggleexposed | () => void | — | Access toggle from a component template ref. |
// packages/frameworks/vue/components/marquee/types.ts
// ------- TYPES -------
export interface MarqueeProps {
/** Scroll speed in pixels per second. Defaults to 20. */
speed?: number
/** Move toward inline end horizontally, or toward the bottom vertically. */
reverse?: boolean
/** Pause while the pointer or focus is inside. */
pauseOnHover?: boolean
/** Space between items and between the two loops, as any CSS length. */
gap?: string
orientation?: 'horizontal' | 'vertical'
}aria-hidden, inert clone.pause-on-hover is off.ids, since the slot renders twice.v-model:paused.prefers-reduced-motion: reduce the marquee is a static wrapped row with no duplicate content.aria-label when it needs a distinct accessible name; a named marquee exposes role="group".