2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search docs...
Components

Carousel

Updated: May 9, 2025
View on GitHub
An interactive component for displaying a collection of images with smooth transitions and navigation controls. The Carousel supports both line and thumbnail indicators for navigation between images. The Carousel supports two types of indicators for navigation: line (default) and thumbnail. You can hide the controls with the controls prop. You can customize the aspect ratio of the carousel to fit your design needs. You can enable auto play with the play prop. You can place custom content inside the slides as ReactNode.
Prop
Type
Default
itemsrequired
CarouselItem[][]
controls
booleantrue
priority
Eager-load the first slide. Use it when the carousel is above the fold.
booleanfalse
stretch
Drop the intrinsic aspect ratio and let slides fill their box.
booleanfalse
indicator
linethumbnailfalse
line
translateY
SpacingTokennumber
aspectRatio
stringoriginal
sizes
string
unoptimized
booleanfalse
revealedByDefault
booleanfalse
thumbnail
Sizing of the thumbnail strip when indicator is "thumbnail".
ThumbnailItem{ scaling: 1, height: "80", sizes: "120px" }
play
Autoplay behaviour and the controls shown for it.
{ auto?: boolean; interval?: number; controls?: boolean; progress?: boolean; }{ auto: false, interval: 3000, controls: true }
…and every FlexProps propinherited
auto
booleanfalse
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club