<tap-carousel>
可水平滑动的轮播,每项包含标签和内容,内容可以是字符串或 TemplateResult。
Example
Loading...
<tap-carousel
style=${"width: 100%;"}
.label=${"Featured"}
.items=${ [ {"label":"Slide 1","content":"Slide 1"}, {"label":"Slide 2","content":"Slide 2"}, {"label":"Slide 3","content":"Slide 3"} ] }></tap-carousel>
API
Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type |
|---|---|---|
label(label) |
Yes | string |
items |
Yes | CarouselItem[] |
