Carousel
An image carousel component for displaying a slideshow of images with autoplay and swipe support.
组件展示
属性
属性名
类型
必需性
描述
id*ComponentId必需
暂无描述
accessibilityAccessibilityAttributes可选
暂无描述
stylesStyles可选
Component style properties
weightnumber可选
The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column.
component*"Carousel"必需
暂无描述
content*string[]必需
An array of image URLs to display in the carousel.
autoplayboolean可选
Whether the carousel should automatically cycle through images. Defaults to false.
默认值:
falsedraggableboolean可选
Whether users can manually drag to switch between images. Defaults to true.
默认值:
true代码示例
{
"component": "Carousel",
"id": "carousel_1",
"content": "示例content"
}