carousel

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Carousel renders a scrollable carousel container.

func Item

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

Item renders a single carousel item.

Types

type Direction

type Direction string
const (
	DirectionDefault    Direction = ""
	DirectionHorizontal Direction = "carousel-horizontal"
	DirectionVertical   Direction = "carousel-vertical"
)

type ItemProps

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

type Props

type Props struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Snap       Snap
	Direction  Direction
}

type Snap

type Snap string
const (
	SnapDefault Snap = ""
	SnapStart   Snap = "carousel-start"
	SnapCenter  Snap = "carousel-center"
	SnapEnd     Snap = "carousel-end"
)

Jump to

Keyboard shortcuts

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