Carousel
Media · Carousel, ProductArt
A row of slides with previous/next buttons and dots. Swipe or scroll on touch, ←/→ on the keyboard.
perViewshows several slides on wide screens; phones always show one (with a peek of the next).loopwraps around at the ends.- The carousel is a labelled region; each slide is announced as "n of total".
Props
Carousel
| Prop | Type | Notes |
|---|---|---|
slides | ReactNode[] | Required |
label | string | Accessible name of the carousel. |
perView? | number | Slides visible at once on wide screens (1 on phones). |
loop? | boolean | Next on the last slide goes back to the first. |
dots? | boolean | Dots under the slides. |
index? | number | |
defaultIndex? | number | |
onChange? | (index: number) => void | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
ProductArt
| Prop | Type | Notes |
|---|---|---|
kind | ArtKind | Required |
tint? | Tint | "plain" | |
size? | number | |
label? | string | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |