badges

package
v1.1.37 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accent

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

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

func Badge

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

Badge generates a badge element based on the provided properties.

func Ghost

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

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

func Neutral

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

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

func Primary

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

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

func Secondary

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

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

Types

type BadgeProps

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

BadgeProps 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