From 6c907de4a6e1b0cf8a81266db85c61cf2b25753a Mon Sep 17 00:00:00 2001 From: Eugene van der Merwe Date: Thu, 19 Jun 2025 03:47:01 +0200 Subject: [PATCH] Update carousel.md to indicate usage of data-carousel-interval --- content/components/carousel.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/components/carousel.md b/content/components/carousel.md index 013136c7..95f6a855 100644 --- a/content/components/carousel.md +++ b/content/components/carousel.md @@ -20,6 +20,7 @@ The carousel component can be initialized by using the `data-carousel={static|sl - `data-carousel="static"` to prevent the carousel sliding by default - `data-carousel="slide"` to infinitely cycle through the items +- `data-carousel-interval="6000"` to change the default interval from 3 to 6 seconds when sliding You can add as many carousel items as you want, but make sure that you add the `data-carousel-item` data attribute to each of them and set a single item to active by applying the `active` value to the data attribute.