timeline

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 End

func End(props ...EndProps) templ.Component

func Hr

func Hr(class ...string) templ.Component

Hr renders the connecting line between timeline items.

func Item

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

func Middle

func Middle(props ...MiddleProps) templ.Component

func Start

func Start(props ...StartProps) templ.Component

func Timeline

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

Types

type Direction

type Direction string

Direction controls horizontal vs vertical layout.

const (
	DirectionDefault    Direction = ""
	DirectionHorizontal Direction = "timeline-horizontal"
	DirectionVertical   Direction = "timeline-vertical"
)

type EndProps

type EndProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Box        bool
}

EndProps configures the end-side content.

type ItemProps

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

ItemProps configures a timeline item.

type MiddleProps

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

MiddleProps configures the middle content (icon).

type Props

type Props struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Direction  Direction
	SnapIcon   bool
	Compact    bool
}

Props configures the timeline container.

type StartProps

type StartProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Box        bool
}

StartProps configures the start-side content.

Jump to

Keyboard shortcuts

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