carousel

package
v2.0.0-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Carousel(props ...Props) templ.Component

func Content

func Content(props ...ContentProps) templ.Component

func Item

func Item(props ...ItemProps) templ.Component

func Next

func Next(props ...NextProps) templ.Component

func Previous

func Previous(props ...PreviousProps) templ.Component

Types

type Align

type Align string
const (
	AlignStart  Align = "start"
	AlignCenter Align = "center"
	AlignEnd    Align = "end"
)

type ContentProps

type ContentProps struct {
	Class      string
	Attributes templ.Attributes
}

type ItemProps

type ItemProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type NextProps

type NextProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type Orientation

type Orientation string
const (
	OrientationHorizontal Orientation = "horizontal"
	OrientationVertical   Orientation = "vertical"
)

type PreviousProps

type PreviousProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type Props

type Props struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	// Orientation of the scroll axis. Defaults to horizontal.
	Orientation Orientation
	// Align of the snapped slide within the viewport (embla's align
	// option). Defaults to center, like embla.
	Align Align
	// Loop wraps from the last slide back to the first.
	Loop bool
	// Autoplay advances the slides automatically (the embla autoplay
	// plugin pendant); pauses while hovered.
	Autoplay bool
	// Interval between autoplay steps in ms. Defaults to 5000.
	Interval int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL