Carousel
shadcn/uiA carousel with motion and swipe built using Embla.
Carousel
Installation
Props
<Carousel />
Name | Type | |
|---|---|---|
orientation | "horizontal" | "vertical"(default: horizontal) | |
opts | object(default: { ... }) | |
setApi | (...args) => void(default: undefined) | |
plugins | string(default: []) |
<CarouselPrevious />
Name | Type | |
|---|---|---|
variant | "link" | "outline" | "default"(default: outline) | |
render | React.ReactElement | |
nativeButton | boolean | |
focusableWhenDisabled | boolean | |
animation | "none" | "all" | "colors" | "only-scale" |
<CarouselNext />
Name | Type | |
|---|---|---|
variant | "link" | "outline" | "default"(default: outline) | |
render | React.ReactElement | |
nativeButton | boolean | |
focusableWhenDisabled | boolean | |
animation | "none" | "all" | "colors" | "only-scale" |