Blazorise Carousel API

Explore the Blazorise Carousel API reference for parameters, events, methods, and related types.

For examples and usage guidance, see the Carousel documentation.

API

Parameters

Carousel

Parameter Description TypeDefault
Autoplay

Determines whether playback starts automatically.

boolfalse
AutoRepeat

Auto-repeats the carousel slides once they reach the end.

boolfalse
ChildContent

Specifies the content to be rendered inside this Carousel.

RenderFragmentnull
Crossfade

Animate slides with a fade transition instead of a slide.

boolfalse
IndicatorTemplate

Specifies a template for rendering carousel indicators.

RenderFragment<CarouselIndicatorContext>null
Interval

Specifies the interval (in milliseconds) after which the item will automatically slide.

double2000
NextButtonLocalizer

Function used to handle custom localization for next button that will override a default ITextLocalizer.

TextLocalizerHandlernull
NextButtonTemplate

Specifies a template for rendering the next navigation button.

RenderFragment<CarouselNavigationContext>null
PreviousButtonLocalizer

Function used to handle custom localization for previous button that will override a default ITextLocalizer.

TextLocalizerHandlernull
PreviousButtonTemplate

Specifies a template for rendering the previous navigation button.

RenderFragment<CarouselNavigationContext>null
SelectedSlide

Specifies the currently selected slide name.

string
ShowControls

Specifies whether to show the controls that allows the user to navigate to the next or previous slide.

booltrue
ShowIndicators

Specifies whether to show an indicator for each slide.

booltrue
Swipeable

Specifies whether horizontal swipe gestures can navigate between slides.

boolfalse
SwipePreventNativeDrag

Specifies whether native browser dragging is prevented while swipe gestures are active.

booltrue
SwipeThreshold

Specifies the minimum swipe distance in pixels.

double50
SwipeTouchAction

Specifies the browser touch-action behavior applied while swipe gestures are active.

Possible values:Auto, None, PanX, PanY, Manipulation

GestureTouchActionGestureTouchAction.PanY
SwipeVelocityThreshold

Specifies the minimum swipe velocity in pixels per millisecond.

double0.3

CarouselSlide

Parameter Description TypeDefault
Caption

Specifies the caption content to be rendered inside this CarouselSlide.

RenderFragmentnull
ChildContent

Specifies the content to be rendered inside this CarouselSlide.

RenderFragmentnull
Interval

Specifies the interval (in milliseconds) after which this item will automatically slide.

int?null
Name

Specifies the slide name.

string

Events

Carousel

Event Description Type
SelectedSlideChanged

Occurs after the selected slide has changed.

EventCallback<string>

Methods

Carousel

Method DescriptionReturnParameters
SelectNext Selects the next slide in a sequence, relative to the current slide. Task
SelectPrevious Selects the previous slide in a sequence, relative to the current slide. Task
Select Selects the slide by its name. Taskstring name
SlideIndex Gets the index of the slide with the specified name. intstring slideName

CarouselSlide

Method DescriptionReturnParameters
Activate Makes this slide active. Task
On this page