Ship faster with goilerplate templUI Pro

Carousel

Interactive slideshow for cycling through a series of content.

Source Tailwind CSS JavaScript

Slide 1

This is the first slide

Slide 2

This is the second slide

Slide 3

This is the third slide

Installation

API Reference

Required parameter
Hover for description

Content

Container for carousel slides with smooth transitions.

Name Type Default
ID

Unique identifier for the content element.

string
-
Class

Additional CSS classes to apply to the content.

string
-
Attributes

Additional HTML attributes to apply to the content element.

templ.Attributes
-

Item

Individual carousel slide container.

Name Type Default
ID

Unique identifier for the item element.

string
-
Class

Additional CSS classes to apply to the item.

string
-
Attributes

Additional HTML attributes to apply to the item element.

templ.Attributes
-

Indicators

Dot indicators showing current slide position and allowing direct navigation.

Name Type Default
ID

Unique identifier for the indicators element.

string
-
Class

Additional CSS classes to apply to the indicators.

string
-
Attributes

Additional HTML attributes to apply to the indicators element.

templ.Attributes
-
Count

Number of indicator dots to display (should match number of slides).

int
-
Axel Adrian