link

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Link(props ...Props) templ.Component

Types

type Props

type Props struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Variant    Variant
	Hover      bool
	Href       string
}

type Variant

type Variant string
const (
	VariantDefault   Variant = ""
	VariantNeutral   Variant = "link-neutral"
	VariantPrimary   Variant = "link-primary"
	VariantSecondary Variant = "link-secondary"
	VariantAccent    Variant = "link-accent"
	VariantSuccess   Variant = "link-success"
	VariantInfo      Variant = "link-info"
	VariantWarning   Variant = "link-warning"
	VariantError     Variant = "link-error"
)

Jump to

Keyboard shortcuts

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