Getting started
UI
W.Feature
Widget
This component uses Swiper Element (WebComponent)
---
import { SwiperSlider } from '@yatoday/astro-ui/astro';
---
<SwiperSlider>
<swiper-slide>Slide 1</swiper-slide>
<swiper-slide>Slide 2</swiper-slide>
<swiper-slide>Slide 3</swiper-slide>
</SwiperSlider>
Prop | Type | Default | Description |
---|---|---|---|
id | string | random | By default, the id is generated automatically. If you decide to specify this parameter yourself, make sure that it is unique on the page |
withNavigation | boolean | true | Navigation visibility |
autoplay | boolean | false | Object with autoplay parameters or boolean true to enable with default settings |
...rest | any | - | …rest params from Swiper js parameters |