links

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accent

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

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

func Button

func Button(props Props, children ...htmx.Node) htmx.Node

Button generate a link that looks like a button.

func Error

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

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

func Info

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

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

func Link(props Props, children ...htmx.Node) htmx.Node

Link generates a link element based on the provided properties.

func Neutral

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

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

func Primary

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

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

func Secondary

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

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

func Underline

func Underline(props Props, children ...htmx.Node) htmx.Node

Underline generates an underline link element based on the provided properties.

func Warning

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

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

Types

type Props

type Props struct {
	// Rel is the relationship between the current document and the linked document.
	Rel string
	// Href is the URL of the linked document.
	Href string
	// Active indicates whether the link is active or not.
	Active bool

	htmx.ClassNames
}

Props represents the properties for a link element.

Jump to

Keyboard shortcuts

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