# Marquee (Andromeda Pro)

Marquee is a component of the Premium Andromeda Pro design system from AI Canvas (https://aicanvas.me). Index of every system, component and install setup: https://aicanvas.me/llms.txt

Loops a row of items slowly across its width, so a long list shows without taking room.

- Design system: [Andromeda Pro](https://aicanvas.me/design-systems/andromeda-pro.md)
- License: Premium (proprietary)
- Install slug: `andromeda-pro-marquee`
- Page: https://aicanvas.me/design-systems/andromeda-pro/marquee

## Install

```bash
npx shadcn@latest add @aicanvas/andromeda-pro-marquee
```

Requires Premium. Without a Premium token the command writes a placeholder (a `PremiumLocked` notice) instead of the component.

Every Andromeda Pro component at once: `npx shadcn@latest add @aicanvas/andromeda-pro`.

Token setup: the Install section of https://aicanvas.me/llms.txt.

## Use it

It installs to `components/aicanvas/andromeda-pro/components/Marquee.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import { Marquee } from '@/components/aicanvas/andromeda-pro/components/Marquee'
```

## Example

```tsx
import { Marquee } from '@/components/aicanvas/andromeda-pro/components/Marquee'

<Marquee aria-label="Workspace tools" separator>
  <span>Invoices</span>
  <span>Payments</span>
  <span>Reports</span>
</Marquee>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `React.ReactNode` |  | The items. Each child becomes one list item, and the whole set renders once per run. |
| `duration?` | `number` | `52` | Seconds for one full pass. The default is the system's one sanctioned non-token duration. |
| `pauseOnHover?` | `boolean` | `true` | Hovering glides the track to a stop and leaving glides it back up to speed. |
| `reverse?` | `boolean` | `false` | Runs left to right instead of right to left. |
| `fade?` | `boolean` | `true` | Both ends dissolve into the page through a mask. |
| `gap?` | `number` |  | A spacing step (`tokens.spacing` key) padded on each side of every item, so two items sit twice this apart. Unset, it is 48px on desktop and 32px from the md breakpoint down. |
| `separator?` | `boolean\|React.ReactNode` | `false` | `true` draws the short slanted hairline between items; a node draws that node instead, centred on the boundary. |
| `aria-label?` | `string` |  | Names the list of items for assistive tech (or use aria-labelledby). |

## Remix prompt

Only when the user wants Marquee rebuilt from scratch instead of installed: the public part of its remix prompt is in the Remix panel at https://aicanvas.me/design-systems/andromeda-pro/marquee.

## More Andromeda Pro components

- [Media Card](https://aicanvas.me/design-systems/andromeda-pro/media-card.md)
- [Message](https://aicanvas.me/design-systems/andromeda-pro/message.md)
- [Table Basic](https://aicanvas.me/design-systems/andromeda-pro/table-basic.md)
- [Table Data](https://aicanvas.me/design-systems/andromeda-pro/table-data.md)
- [Music Player](https://aicanvas.me/design-systems/andromeda-pro/music-player.md)
