partials

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImgProxyKey  contextKey = "imgproxy_key"
	ImgProxySalt contextKey = "imgproxy_salt"
)
View Source
const ModalContainerID = models.ElementID("modals")

ModalContainerID points to an element that holds a modal.

Variables

This section is empty.

Functions

func ButtonBack added in v0.35.0

func ButtonBack() templ.Component

ButtonBack adds a button that will trigger the browser to navigate back in history.

func ButtonBackToTop added in v0.35.0

func ButtonBackToTop() templ.Component

ButtonBackToTop adds a "back to top" button that is only shown when the user has scrolled down the page.

func GenerateImageProxyURL added in v0.73.0

func GenerateImageProxyURL(ctx context.Context, url, props string) string

func Heading1 added in v0.40.0

func Heading1() templ.Component

func Heading2 added in v0.40.0

func Heading2() templ.Component

func Heading3 added in v0.40.0

func Heading3() templ.Component
func Modal(id string, open bool) templ.Component

Modal will render a modal with the given content.

func NewProxiedImage added in v0.73.0

func NewProxiedImage(img *types.ImageInfo, props string, options ...element.Option) templ.Component

func Paragraph added in v0.40.0

func Paragraph() templ.Component

func Thumbnail added in v0.73.0

func Thumbnail(img *types.ImageInfo, name string, size int) templ.Component

Types

type ProxiedImage added in v0.73.0

type ProxiedImage struct {
	*element.Element
}

Jump to

Keyboard shortcuts

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