indicator

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 Indicator

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

Indicator renders a DaisyUI indicator wrapper. Place an Item and the target element as children.

func Item

func Item(props ...ItemProps) templ.Component

Item renders a DaisyUI indicator-item element positioned on a corner of its sibling.

Types

type HorizontalAlign

type HorizontalAlign string

HorizontalAlign controls horizontal placement of the indicator item.

const (
	HorizontalAlignEnd    HorizontalAlign = ""
	HorizontalAlignStart  HorizontalAlign = "indicator-start"
	HorizontalAlignCenter HorizontalAlign = "indicator-center"
)

type ItemProps

type ItemProps struct {
	Class           string
	Attributes      templ.Attributes
	HorizontalAlign HorizontalAlign
	VerticalAlign   VerticalAlign
}

ItemProps configures the indicator item (the badge/status positioned on a corner).

type Props

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

Props configures the indicator container.

type VerticalAlign

type VerticalAlign string

VerticalAlign controls vertical placement of the indicator item.

const (
	VerticalAlignTop    VerticalAlign = ""
	VerticalAlignMiddle VerticalAlign = "indicator-middle"
	VerticalAlignBottom VerticalAlign = "indicator-bottom"
)

Jump to

Keyboard shortcuts

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