badges

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package badges provides components for rendering user badges.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accent

func Accent(p Props, children ...htmx.Node) htmx.Node

Accent generates an accent badge element based on the provided properties.

func Badge

func Badge(p Props, children ...htmx.Node) htmx.Node

Badge generates a badge element based on the provided properties.

func Error added in v0.5.4

func Error(p Props, children ...htmx.Node) htmx.Node

Error generates an error badge element based on the provided properties.

func Ghost

func Ghost(p Props, children ...htmx.Node) htmx.Node

Ghost generates a ghost badge element based on the provided properties.

func Info added in v0.5.4

func Info(p Props, children ...htmx.Node) htmx.Node

Info generates an info badge element based on the provided properties.

func Neutral

func Neutral(p Props, children ...htmx.Node) htmx.Node

Neutral generates a neutral badge element based on the provided properties.

func Primary

func Primary(p Props, children ...htmx.Node) htmx.Node

Primary generates a primary badge element based on the provided properties.

func Secondary

func Secondary(p Props, children ...htmx.Node) htmx.Node

Secondary generates a secondary badge element based on the provided properties.

func Success added in v0.5.4

func Success(p Props, children ...htmx.Node) htmx.Node

Success generates a success badge element based on the provided properties.

func Warning added in v0.5.4

func Warning(p Props, children ...htmx.Node) htmx.Node

Warning generates a warning badge element based on the provided properties.

Types

type Props added in v0.5.4

type Props struct {
	htmx.ClassNames // The class names for the badge element.
}

Props represents the properties for a badge element.

Jump to

Keyboard shortcuts

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