ComponentsCarousel
Carousel
A slideshow component that cycles through elements.
A slideshow component that cycles through elements.
Prop | Type | Default |
---|---|---|
align | 'center' | 'end' | 'start' | |
asChild | boolean | |
defaultIndex | number | |
dir | 'ltr' | 'rtl' | "ltr" |
getRootNode | () => ShadowRoot | Node | Document | |
id | string | |
ids | Partial<{
root: string
viewport: string
slide(index: number): string
slideGroup: string
nextSlideTrigger: string
prevSlideTrigger: string
indicatorGroup: string
indicator(index: number): string
}> | |
index | number | |
loop | boolean | |
onSlideChange | (details: SlideChangeDetails) => void | |
orientation | 'horizontal' | 'vertical' | "horizontal" |
slidesPerView | number | 'auto' | |
spacing | string |
Prop | Type | Default |
---|---|---|
index | number | |
asChild | boolean |
Prop | Type | Default |
---|---|---|
asChild | boolean |
Prop | Type | Default |
---|---|---|
asChild | boolean |
Prop | Type | Default |
---|---|---|
index | number | |
asChild | boolean | |
readOnly | boolean |
Prop | Type | Default |
---|---|---|
asChild | boolean |
Prop | Type | Default |
---|---|---|
asChild | boolean |
Prop | Type | Default |
---|---|---|
asChild | boolean |
Prop | Type | Default |
---|---|---|
asChild | boolean |