Show pictures one at a time, moved by swiping, dragging, the arrow keys or the dots.
View as MarkdownInstallation
Component API
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | The slides, one per child, such as pictures or cards. |
| The slides, one per child, such as pictures or cards. | |||
ariaLabel | string | Carousel | Names the carousel for screen readers. |
| Names the carousel for screen readers. | |||
loop | boolean | false | Wraps from the last slide back to the first. |
| Wraps from the last slide back to the first. | |||
aspectRatio | string | 16 / 10 | Each slide's width over its height, such as 16 / 10. |
Each slide's width over its height, such as 16 / 10. | |||
dots | boolean | true | Draws the dots under the slides. |
| Draws the dots under the slides. | |||
shape | none | rounded | pill | rounded | |
className | string | - | |
focus | boolean | string | true | |