items | WheelCarouselItem[]Your own option names and photos. Each entry takes a label and an image URL, plus an optional imageAlt. | Built-in demo set |
mode | "system" | "light" | "dark" | "custom"Use automatic, fixed, or custom color behavior. | "system" |
photoSide | "left" | "right"Side of the wheel used for the active image. | "left" |
photoWidth | numberImage column width as a percentage. | 24 |
photoAspect | "3/4" | "1/1" | "4/3" | "3/2"Aspect ratio of the active image. | "3/4" |
photoRadius | numberCorner radius of the active image in pixels. | 14 |
contentWidth | numberMaximum inner content width in pixels. | 900 |
gap | numberSpace between the image column and the wheel in pixels. | 0 |
radius | numberRadius of the label wheel in pixels. | 320 |
spacing | numberAngular spacing between labels in degrees. | 14 |
visibleItems | numberNumber of labels visible on either side of the selection. | 7 |
apexInset | numberHorizontal position of the wheel's selection point. | 34 |
snap | booleanSettles the wheel on the nearest whole item. | true |
momentum | booleanPreserves drag and wheel velocity after input ends. | true |
appear | booleanPlays an entrance animation on mount. | true |
crossfadeDuration | numberDuration in seconds of the active image crossfade. | 0.5 |
scrollSpeed | numberRotation per wheel delta pixel. | 0.008 |
dragSpeed | numberRotation per pointer pixel dragged. | 0.02 |
background | stringCanvas color in "custom" mode. | "rgb(255, 246, 236)" |
panelColor | stringImage placeholder color in "custom" mode. Defaults to background. | — |
textColor | stringInactive label color in "custom" mode. | "rgba(180, 90, 20, 0.45)" |
selectedColor | stringActive label color in "custom" mode. | "rgb(180, 84, 30)" |
showMarker | booleanShows the dot marking the selection point. | true |
markerColor | stringSelection dot color in "custom" mode. | "rgb(232, 121, 46)" |
markerSize | numberSelection dot diameter in pixels. | 16 |
markerGap | numberDistance between the selection dot and the labels. | 20 |
edgeFade | booleanFades labels at the top and bottom edges. | true |
edgeFadeSize | numberSize of the edge fade as a percentage. | 30 |
activeIndex | numberControlled active item index. | — |
initialIndex | numberInitially selected item in uncontrolled usage. | 0 |
onActiveChange | (item: WheelCarouselItem, index: number) => voidRuns whenever the active item changes. | — |
className | stringAdditional classes for the outer carousel. | — |
photoClassName | stringAdditional classes for the active image frame. | — |
itemClassName | stringAdditional classes for each wheel label. | — |