More components in Pro
Galleries, cards and interactive pieces for pages that need more than the basics.
items | Array<{ src: string; alt?: string; title?: string; subtitle?: string }> | 10 sample photos | Images placed around the ring. The alt text is announced to screen readers, the title and optional subtitle are shown by captions. Passing a new list of the same length crossfades each card to its new image. |
preset | 'cylinder' | 'orbit' | 'wheel' | 'panorama' | 'cylinder' | Shape of the ring. Cylinder faces the cards outward, orbit keeps every card turned toward you, wheel spins top to bottom, and panorama puts the camera inside the ring. |
| 'assemble' | 'rise' | 'spin' | 'none' | 'rise' | Entrance once the images load. Assemble glides the cards in from a wider ring, rise slides them in one by one from the edge of the frame, and spin lands a fast turn. | |
cardWidth | 220 | Card width in px. The whole ring scales down to fit its container when it needs to. | |
aspectRatio | Card width divided by its height. Images are cropped to fill the card. | ||
gap | 25 | Space between neighbouring cards, in px. | |
curve | from preset | How far the cards bend to follow the ring, from flat at 0 to fully wrapped at 1. Ignored by orbit. | |
tilt | from preset | Camera angle in degrees. Negative values look down onto the ring. | |
perspective | from preset | Camera distance in px. Lower values exaggerate depth. Panorama sets its own, since the camera sits at the centre. | |
autoplay | 'drift' | 'step' | 'off' | 'drift' | Drift turns the ring continuously, step moves one card at a time and settles on it, off only moves when you do. |
speed | 14 | Drift speed in degrees per second. | |
interval | 3 | Seconds between moves in step mode. | |
direction | 'left' | 'right' | 'left' | Which way the front cards travel. A flick changes it to the way you threw the ring. On the wheel, left means up. |
draggable | Lets you grab and throw the ring with a mouse, finger or horizontal trackpad scroll. | ||
momentum | 0.6 | How long a throw keeps gliding before it blends back into the autoplay speed, from 0 to 1. | |
snap | Settles on a card whenever the ring comes to rest. | ||
pauseOnHover | Eases the ring to a stop while the pointer is over it. | ||
focusOnClick | Clicking a card turns it to the front. | ||
parallax | 0.3 | How much the camera leans toward the pointer, from 0 to 1. | |
stretch | 0.5 | How much the ring swells outward when it spins fast, from 0 to 1. | |
depthFade | 0.55 | How strongly cards fade into fadeColor as they turn away, from 0 to 1. | |
fadeColor | '#000000' | Color distant cards fade toward. Match it to the background behind the carousel. | |
innerShade | 0.6 | Brightness of the inside faces seen through the back of the ring, from 0 to 1. | |
cornerRadius | 12 | Corner radius of the cards, in px. | |
captions | Shows the front card title, subtitle and position under the ring. | ||
onChange | (index: number) => void | Called when a different card reaches the front. | |
onItemClick | (item, index: number) => void | Called when a card is clicked, or when Enter is pressed on the carousel. | |
| Extra classes on the container. | |||
| Inline styles on the container. |
itemsArray<{ src: string; alt?: string; title?: string; subtitle?: string }>Images placed around the ring. The alt text is announced to screen readers, the title and optional subtitle are shown by captions. Passing a new list of the same length crossfades each card to its new image.
10 sample photospreset'cylinder' | 'orbit' | 'wheel' | 'panorama'Shape of the ring. Cylinder faces the cards outward, orbit keeps every card turned toward you, wheel spins top to bottom, and panorama puts the camera inside the ring.
'cylinder'intro'assemble' | 'rise' | 'spin' | 'none'Entrance once the images load. Assemble glides the cards in from a wider ring, rise slides them in one by one from the edge of the frame, and spin lands a fast turn.
'rise'cardWidthnumberCard width in px. The whole ring scales down to fit its container when it needs to.
220aspectRationumberCard width divided by its height. Images are cropped to fill the card.
gapnumberSpace between neighbouring cards, in px.
25curvenumberHow far the cards bend to follow the ring, from flat at 0 to fully wrapped at 1. Ignored by orbit.
from presettiltnumberCamera angle in degrees. Negative values look down onto the ring.
from presetperspectivenumberCamera distance in px. Lower values exaggerate depth. Panorama sets its own, since the camera sits at the centre.
from presetautoplay'drift' | 'step' | 'off'Drift turns the ring continuously, step moves one card at a time and settles on it, off only moves when you do.
'drift'speednumberDrift speed in degrees per second.
14intervalnumberSeconds between moves in step mode.
3direction'left' | 'right'Which way the front cards travel. A flick changes it to the way you threw the ring. On the wheel, left means up.
'left'draggablebooleanLets you grab and throw the ring with a mouse, finger or horizontal trackpad scroll.
momentumnumberHow long a throw keeps gliding before it blends back into the autoplay speed, from 0 to 1.
0.6snapbooleanSettles on a card whenever the ring comes to rest.
pauseOnHoverbooleanEases the ring to a stop while the pointer is over it.
focusOnClickbooleanClicking a card turns it to the front.
parallaxnumberHow much the camera leans toward the pointer, from 0 to 1.
0.3stretchnumberHow much the ring swells outward when it spins fast, from 0 to 1.
0.5depthFadenumberHow strongly cards fade into fadeColor as they turn away, from 0 to 1.
0.55fadeColorstringColor distant cards fade toward. Match it to the background behind the carousel.
'#000000'innerShadenumberBrightness of the inside faces seen through the back of the ring, from 0 to 1.
0.6cornerRadiusnumberCorner radius of the cards, in px.
12captionsbooleanShows the front card title, subtitle and position under the ring.
onChange(index: number) => voidCalled when a different card reaches the front.
onItemClick(item, index: number) => voidCalled when a card is clicked, or when Enter is pressed on the carousel.
Extra classes on the container.
Inline styles on the container.



