steps

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 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 Icon

func Icon(props ...IconProps) templ.Component

Icon renders a step-icon wrapper for custom icons inside a step.

func Step

func Step(props ...StepProps) templ.Component

Step renders a single step item as an <li>.

func Steps

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

Steps renders the steps container as a <ul>.

Types

type Direction

type Direction string
const (
	DirectionDefault    Direction = ""
	DirectionHorizontal Direction = "steps-horizontal"
	DirectionVertical   Direction = "steps-vertical"
)

type IconProps

type IconProps struct {
	Class      string
	Attributes templ.Attributes
}

type Props

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

type StepProps

type StepProps struct {
	ID          string
	Class       string
	Attributes  templ.Attributes
	Variant     Variant
	DataContent string
}

type Variant

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

Jump to

Keyboard shortcuts

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