progress

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: 4 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Progress

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

Progress renders a progress bar. When Max is 0, the bar renders as indeterminate (no value/max attributes).

Types

type Props

type Props struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Variant    Variant
	Value      int
	Max        int
}

type Variant

type Variant string
const (
	VariantDefault   Variant = ""
	VariantPrimary   Variant = "progress-primary"
	VariantSecondary Variant = "progress-secondary"
	VariantAccent    Variant = "progress-accent"
	VariantNeutral   Variant = "progress-neutral"
	VariantInfo      Variant = "progress-info"
	VariantSuccess   Variant = "progress-success"
	VariantWarning   Variant = "progress-warning"
	VariantError     Variant = "progress-error"
)

Jump to

Keyboard shortcuts

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