Skip to main content

Carousel

Description

A simple carousel

Breadcrumb

{{ component('proglab_carousel', {
id: 'carousel1',
images: [
{url: 'https://picsum.photos/id/1/200/300', alt: 'image 1', caption: {title: 'This is a carousel', text: 'ceci est un texte'}},
{url: 'https://picsum.photos/id/2/200/300', alt: 'image 2', interval:3000}
],
with_controls: true,
control_next: 'Next',
control_previous: 'Previous',
with_indicators: true,
fade: true,
dark: false
}) }}

Parameters

General

ParameterTypeDescriptionDefault Values
idstringThe id of the carouselnull
imagesarrayImages (see next)null
with_controlsboolSee controlsfalse
control_next?stringThe label for next'Next'
control_previous?stringThe label for previous'Previous'
with_indicatorsboolSee indicatorsfalse
fadeboolFade effectfalse
darkboolControls in dark modefalse

Images

ParameterTypeDescriptionDefault Values
urlstringRequirednull
altstringThe image alternativenull
captionarrayThe image caption (see next)null
interval?stringThe image slide intervalnull

Caption

ParameterTypeDescriptionDefault Values
titlestringThe title of the captionnull
textstringThe text of the captionnull

Usage/Examples

{{ component('proglab_carousel', {
id: 'carousel1',
images: [
{url: 'https://picsum.photos/id/1/200/300', alt: 'image 1'},
{url: 'https://picsum.photos/id/2/200/300', alt: 'image 2'}
],
}) }}