Skip to content

CarouselDots

Dots for a carousel, static or on autoplay.

Installation

Install CarouselDots from the Fluid Effect UI registry.

API Reference

Types come from the public API. A dash indicates no default is documented here.

CarouselDots props

Public source
PropTypeDefaultDescription
keyKeepAliveKey<K, Ends> | undefined''The child's identity among its parent's children of one component, or a kept child's among its author's. The empty string by default.
onEmit
Show type
((events: { readonly _tag: "ChangeRequested"; readonly index: number; readonly reason: "manual" | "autoplay"; }) => NoInfer<Msg> | undefined) | { readonly ChangeRequested: (event: { readonly _tag: "ChangeRequested"; readonly index: number; readonly reason: "manual" | "autoplay"; }) => NoInfer<Msg> | undefined; } | undefined
—Handle the child's events with a callback, or supply one handler per tag for tagged events. Return a parent message to dispatch it, or `undefined` to ignore the event.
props.idstringRequired
props.valuenumberRequired
props.countnumberRequired
props.labelstring'Slide navigation'
props.progressnumber
Varies
  • (canPlay(p) ? 0 : 1)
  • progress
props.disabledbooleanfalse
props.reducedMotionbooleanmotion.matches
props.classNamestring''
props.shape"rounded" | "pill" | "sharp"—
props.autoplayboolean | { readonly duration?: number; readonly paused?: boolean; readonly loop?: boolean; }—
props.labelsreadonly string[]—