status

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 Status

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

Types

type Animation

type Animation string

Animation controls the status animation.

const (
	AnimationNone   Animation = ""
	AnimationPing   Animation = "animate-ping"
	AnimationBounce Animation = "animate-bounce"
)

type Props

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

Props configures a status indicator.

type Size

type Size string

Size controls the status indicator size.

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

type Variant

type Variant string

Variant controls the status color.

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

Jump to

Keyboard shortcuts

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