stat

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 Actions

func Actions(props ...ActionsProps) templ.Component

func Desc

func Desc(props ...DescProps) templ.Component

func Figure

func Figure(props ...FigureProps) templ.Component

func Stat

func Stat(props ...StatProps) templ.Component

func Stats

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

func Title

func Title(props ...TitleProps) templ.Component

func Value

func Value(props ...ValueProps) templ.Component

Types

type ActionsProps

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

ActionsProps configures the stat actions container.

type DescProps

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

DescProps configures the stat description.

type Direction

type Direction string

Direction controls horizontal vs vertical layout of stats.

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

type FigureProps

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

FigureProps configures the stat figure (icon/image container).

type Props

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

Props configures the stats container.

type StatProps

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

StatProps configures an individual stat block.

type TitleProps

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

TitleProps configures the stat title.

type ValueProps

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

ValueProps configures the stat value.

Jump to

Keyboard shortcuts

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