loading

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 Loading

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

Loading renders a loading indicator.

Types

type Props

type Props struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Type       Type
	Size       Size
}

type Size

type Size string
const (
	SizeDefault Size = ""
	SizeXs      Size = "loading-xs"
	SizeSm      Size = "loading-sm"
	SizeMd      Size = "loading-md"
	SizeLg      Size = "loading-lg"
	SizeXl      Size = "loading-xl"
)

type Type

type Type string
const (
	TypeDefault  Type = ""
	TypeSpinner  Type = "loading-spinner"
	TypeDots     Type = "loading-dots"
	TypeRing     Type = "loading-ring"
	TypeBall     Type = "loading-ball"
	TypeBars     Type = "loading-bars"
	TypeInfinity Type = "loading-infinity"
)

Jump to

Keyboard shortcuts

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