links

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accent added in v1.0.10

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

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

func Button added in v1.0.19

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

Button generate a link that looks like a button.

func Error added in v1.0.10

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

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

func Info added in v1.0.10

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

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

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

Link generates a link element based on the provided properties.

func Neutral added in v1.0.10

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

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

func Primary

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

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

func Secondary added in v1.0.10

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

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

func Underline added in v1.0.10

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

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

func Warning added in v1.0.10

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

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

Types

type LinkProps

type LinkProps struct {
	Rel        string          // The relationship between the current document and the linked document.
	Href       string          // The URL of the linked document.
	ClassNames map[string]bool // The class names for the link element.
	Active     bool            // Whether the link is active.
}

LinkProps 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