Carousel
Since 0.1.0-alpha.21IzzyBlazor.Carousel in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly
and its doc comments.
Properties (11)
Labelstring requiredWhat the carousel shows, such as "Featured trips": its accessible name. Required.
@bind-Indexint = 0The slide in view (the first, when several show), from 0. Without @bind-Index, it's the slide the carousel starts on.
How many slides show at once, per breakpoint. Defaults to 1.
Space between slides, in spacing steps (0 to 16), per breakpoint. Defaults to 4.
Loopbool = falseWraps from the last slide to the first, and back.
Arrowsbool = trueShows the previous and next buttons. Defaults to true.
DotsCarouselDots = CarouselDots.AutoWhere the dots go, a dot for each slide (each page, with several in view): CarouselDots.Auto, the default, puts them on the slide when one shows at a time and below when several do. CarouselDots.Thumbnails shows a small picture for each slide in their place.
Autoplaybool = falseMoves on a slide every Interval, from the last back to the first, with a button that stops and starts it. Needs script.
IntervalTimeSpan = TimeSpan.FromMilliseconds(5000)How long each slide shows with Autoplay. Defaults to 5 seconds. A CarouselItem can set its own.
TransitionCarouselTransition = CarouselTransition.SlideHow one slide gives way to the next: CarouselTransition.Slide, the default, or CarouselTransition.Fade, which shows one slide at a time and cross-fades.
ChildContentRenderFragment?The CarouselItems.
Events (0)
No events.
Parts (1)
Components written inside Carousel, documented here with it.
CarouselItem
One slide of a Carousel. A group named "3 of 5", or by its Label.
Labelstring?Names the slide, such as "Lisbon". Without one, it's named by its place: "3 of 5".
IntervalTimeSpan?How long this slide shows with the carousel's Autoplay, in place of its Interval.
Thumbnailstring?The slide's small picture in the row under the slides, with the carousel's Dots="CarouselDots.Thumbnails". Without one, the row shows the slide's number.
DarkThumbnailstring?The Thumbnail for the dark scheme.
Idstring?The slide's id.
ChildContentRenderFragment?The slide's content.
Plus 4 common props.
Types (2)
CarouselDots
enumWhere a Carousel's dots go.
| Value | Description |
|---|---|
Auto | On the slide when one shows at a time; below when several do. |
Over | On the slide, at the bottom. |
Below | Below the slides, across the carousel's width. |
None | No dots. |
Thumbnails | Below the slides, a small picture for each slide in place of a dot: each |
CarouselTransition
enumHow a Carousel's slides give way to each other.
| Value | Description |
|---|---|
Slide | The slides sit in a row that scrolls; several can show at once. |
Fade | One slide shows at a time, and the next fades in over it. |