Carousel

A slideshow component for cycling through elements—images or slides of text—like a carousel.

Bootstrap docs

Component Properties

The Carousel component takes a variety of properties to customize its appearance and content:

  • carousel_theme (string) (default: 'light')

  • id (intdefault: random(1000))

  • crossfade (bool) (default: false)

  • show_carousel_control (bool) (default: true)

  • show_carousel_indicators (bool) (default: true)

  • show_carousel_caption (bool) (default: true)

  • carousel_utility_classes (arraydefault: []): Additional classes to add to the carousel.

  • carousel_item_utility_classes (arraydefault: []): Additional classes to add to the carousel item.

  • carousel_caption_utility_classes (array) (default: []): Additional classes to add to the carousel caption.

  • carousel_indicator_utility_classes (array) (default: []): Additional classes to add to the carousel indicator.

  • media_attributes (array) (default: []): Media attributes.

  • item_image_attributes (array) (default: []): Item image attributes.

  • caption_title_tag (string) (default: 'h5'): Caption title tag.

  • caption_content_tag (string) (default: 'p'): Caption content tag.

  • items (array) (default: []): Carousel items.

    • item (array) (default: []): Carousel item.

      • caption_title (string) (default: ''): Caption title.

      • caption_content (string) (default: ''): Caption content.

      • image_src (string) (default: ''): Image source.

      • media (array) (default: []): Media.

      • interval (int) (default: 5000): Interval.

Usage

Last updated

Was this helpful?