badges

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

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

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

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

func Warning

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

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

Types

type Props

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