links

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 2 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(p LinkProps, children ...htmx.Node) htmx.Node

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

func Error added in v1.0.10

func Error(p 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(p LinkProps, children ...htmx.Node) htmx.Node

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

func Link(p 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(p LinkProps, children ...htmx.Node) htmx.Node

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

func Primary

func Primary(p 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(p 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(p 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(p 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.
	// contains filtered or unexported fields
}

LinkProps represents the properties for a link element.

func (LinkProps) WithContext

func (p LinkProps) WithContext(ctx context.Context, children ...htmx.Node) LinkProps

WithContext returns the LinkProps with the provided context.

Jump to

Keyboard shortcuts

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