43 Pro components and page blocks

Get Pro

Marquee

New

Preview

Customize

Left
Speed40px/s
Slow down
Hover speed0.25
Gap40px
Both sides
Fade width64px

Usage

import { Marquee } from "@/components/uibrik/marquee/marquee";

<Marquee>…</Marquee>

Installation

npx shadcn@latest add https://uibrik.com/r/marquee.json
Adds the files to components/uibrik/marquee and installs motion and react-use-measure. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/marquee.

Props

Marquee
direction
Type "left" | "right" | "up" | "down"
"left"
Which way the content travels. Up and down need a frame with a height.
speed
Type number
40
Pixels per second.
onHover
Type "slow" | "pause" | "none"
"slow"
Ease to a slower speed, ease to a stop, or ignore the pointer.
hoverSpeed
Type number
0.25
Speed while hovered, as a share of speed.
draggable
Type boolean
false
Drag the track and flick it; it drifts back to its own speed.
gap
Type number
40
Space between items.
fadeEdges
Type "both" | "start" | "end" | "none"
"both"
Which edges fade into the page. Start is left (or top when vertical).
fade
Type number
64
Width of each faded edge.
childrenrequired
Type ReactNode
–
The items. They are repeated to fill the frame.
className
Type string
–
Classes for the frame.