Elements

Reference

Marquee

Marquee, dressed in the paper-and-ink system: a linear ribbon of seal-cut chips that dissolves into the paper at its edges rather than cutting off. The parts — Root, Viewport, Content, Edge, Item.

Root · Viewport · Content · Edge · Item

#Content

A styled part — no props of its own; it takes the anatomy's shared styling.

#Edge

PropTypeDefaultDescription
sideSideThe side where the edge gradient should appear.

#Item

A styled part — no props of its own; it takes the anatomy's shared styling.

#Root

PropTypeDefaultDescription
autoFillbooleanfalseWhether to automatically duplicate content to fill the container.
defaultPausedbooleanfalseWhether the marquee is paused by default.
delaynumber0The delay before the animation starts (in seconds).
idstringThe unique identifier of the machine.
idsPartial<{ root: string; viewport: string; content: (index: number) => string; }>The ids of the elements in the marquee. Useful for composition.
loopCountnumber0The number of times to loop the animation (0 = infinite).
pausedbooleanWhether the marquee is paused.
pauseOnInteractionbooleanfalseWhether to pause the marquee on user interaction (hover, focus).
reversebooleanfalseWhether to reverse the animation direction.
sidemarquee.Side"start"The side/direction the marquee scrolls towards.
spacingstring"1rem"The spacing between marquee items.
speednumber50The speed of the marquee animation in pixels per second.
translationsmarquee.IntlTranslationsThe localized messages to use.
EventPayload
pauseChangedetails: PauseStatusDetails
complete—
loopComplete—
update:pausedpaused: boolean

#Viewport

A styled part — no props of its own; it takes the anatomy's shared styling.