Carousel

An image carousel component for displaying a slideshow of images with autoplay and swipe support.

组件展示

Feature 01
Feature 02
Feature 03
Feature 04
Feature 05
Feature 06
Feature 07
Feature 08
Feature 09
Feature 10
Feature 11
Feature 12
Feature 13
Feature 14
Feature 15
Feature 16

属性

属性名
类型
必需性
描述
id*
ComponentId
必需
暂无描述
accessibility
AccessibilityAttributes
可选
暂无描述
styles
Styles
可选
Component style properties
weight
number
可选
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.
autoplay
boolean
可选
Whether the carousel should automatically cycle through images. Defaults to false.
默认值: false
draggable
boolean
可选
Whether users can manually drag to switch between images. Defaults to true.
默认值: true

代码示例

{
  "component": "Carousel",
  "id": "carousel_1",
  "content": "示例content"
}