progress

package
v0.0.0-...-fce5aa4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

templ: version: v0.2.747

Index

Constants

View Source
const RootClassName = "progress-bar"

Variables

This section is empty.

Functions

func Show

func Show(props ProgressProps) templ.Component

Types

type ProgressProps

type ProgressProps struct {
	base.ElementProps
	InProgress       bool
	IsAnimated       bool
	Percentage       int
	Label            string
	LabelCanOverflow bool
	StatusClass      ProgressStatusClass
}

func (*ProgressProps) BuildClassNames

func (pp *ProgressProps) BuildClassNames() (classNames string)

func (ProgressProps) PercentStyleString

func (pp ProgressProps) PercentStyleString() (percent string)

type ProgressStatusClass

type ProgressStatusClass string
const DangerStatus ProgressStatusClass = "bg-danger"
const InfoStatus ProgressStatusClass = "bg-info"
const SuccessStatus ProgressStatusClass = "bg-success"
const WarningStatus ProgressStatusClass = "bg-warning"

Jump to

Keyboard shortcuts

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