Marquee

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

  • Payments
  • Cards
  • Payroll
  • Invoices
  • Treasury
  • Exchange

Configurations

Supported configurations for this component.

Configurations

3 examples
Default
  • Payments
  • Cards
  • Payroll
  • Invoices
  • Treasury
  • Exchange
Reverse
  • Payments
  • Cards
  • Payroll
  • Invoices
  • Treasury
  • Exchange
No fade
  • Payments
  • Cards
  • Payroll
  • Invoices
  • Treasury
  • Exchange

Add to your project

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/••••••••••••

Light and dark both come with the install and follow the dark class on <html>, the shadcn dark mode setup (next-themes with attribute="class").

Props

Every prop this component accepts. Any other prop is forwarded to the underlying element.

PropTypeDefaultDescription
childrenreqReact.ReactNode-The items. Each child becomes one list item, and the whole set renders once per run.
durationnumber52Seconds for one full pass. The default is the system's one sanctioned non-token duration.
pauseOnHoverbooleantrueHovering glides the track to a stop and leaving glides it back up to speed.
reversebooleanfalseRuns left to right instead of right to left.
fadebooleantrueBoth ends dissolve into the page through a mask.
gapnumber-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.
separatorboolean|React.ReactNodefalse`true` draws the short slanted hairline between items; a node draws that node instead, centred on the boundary.
aria-labelstring-Names the list of items for assistive tech (or use aria-labelledby).

More Andromeda Pro components