partials

package
v0.174.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const ModalContainerID = models.ElementID("modals")

ModalContainerID points to an element that holds a modal.

Variables

This section is empty.

Functions

func Card added in v0.98.0

func Card(options ...element.PropertiesOption) templ.Component

func CardBody added in v0.98.0

func CardBody(options ...element.PropertiesOption) templ.Component

func CardFooter added in v0.98.0

func CardFooter(options ...element.PropertiesOption) templ.Component

func CardHeader added in v0.98.0

func CardHeader(options ...element.PropertiesOption) templ.Component

func FAQ added in v0.143.0

func FAQ(entries []FAQEntry) templ.Component

func FormDisclosure added in v0.82.3

func FormDisclosure(label string) templ.Component

func FormField added in v0.82.4

func FormField() templ.Component

func FormSection added in v0.82.4

func FormSection() templ.Component

func GenerateImageProxyURL added in v0.73.0

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

func HelpPopover added in v0.79.0

func HelpPopover(id, anchor string) templ.Component

HelpPopover can be used to render a help icon, that when clicked, will open a popover displaying informational or help text.

func ItemListJSONLD added in v0.173.0

func ItemListJSONLD(name string, entries []ListItemJSONLD) templ.Component

func LoadingIndicator added in v0.75.0

func LoadingIndicator(id string) templ.Component

LoadingIndicator adds a loading indicator that is displayed while a HTMX request is processing.

func Logo(options ...element.PropertiesOption) templ.Component
func Menu(options ...element.PropertiesOption) templ.Component
func MenuItem(options ...element.PropertiesOption) 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 *models.RemoteImage, props string, options ...element.PropertiesOption) templ.Component

func NoContent added in v0.84.0

func NoContent() templ.Component

func ObfuscateEmail added in v0.98.0

func ObfuscateEmail(email, label string) templ.Component

func ReadingProgress added in v0.123.0

func ReadingProgress() templ.Component

func RenderJSONLD added in v0.143.0

func RenderJSONLD(id string, data any) templ.Component

func SubscriptionSuggestions added in v0.82.3

func SubscriptionSuggestions(subscriptions models.Subscriptions) templ.Component

SubscriptionSuggestions renders the given subscriptions as options for an autocomplete dropdown.

func Thumbnail added in v0.73.0

func Thumbnail(img *models.RemoteImage, name string, size string) templ.Component

Types

type ArticleJSONLD added in v0.167.0

type ArticleJSONLD struct {
	Context      string          `json:"@context"`
	Type         string          `json:"@type"`
	Headline     string          `json:"headline"`
	Description  string          `json:"description"`
	DateModified string          `json:"dateModified"`
	Author       AuthorJSONLD    `json:"author"`
	Publisher    PublishedJSONLD `json:"publisher"`
}

type AuthorJSONLD added in v0.167.0

type AuthorJSONLD struct {
	Type string `json:"@type"`
	Name string `json:"name"`
	URL  string `json:"url"`
}

type FAQEntry added in v0.143.0

type FAQEntry struct {
	ID       string
	Question string
	Answer   string
}

FAQEntry represents a single question and answer pair.

type ListItemJSONLD added in v0.173.0

type ListItemJSONLD struct {
	Name        string
	Description string
	URL         string
	Image       *element.Img
}

type OfferJSONLD added in v0.167.1

type OfferJSONLD struct {
	Type            string `json:"@type"`
	Price           string `json:"price"`
	PriceCurrency   string `json:"priceCurrency"`
	PriceValidUntil string `json:"priceValidUntil,omitempty"`
}

type PriceJSONLD added in v0.167.1

type PriceJSONLD struct {
	Context             string        `json:"@context"`
	Type                []string      `json:"@type"`
	Name                string        `json:"name"`
	ApplicationCategory string        `json:"applicationCategory"`
	OperatingSystem     string        `json:"operatingSystem"`
	Offers              []OfferJSONLD `json:"offers"`
	Description         string        `json:"description"`
	URL                 string        `json:"url"`
}

type ProxiedImage added in v0.73.0

type ProxiedImage struct {
	*element.Properties
}

type PublishedJSONLD added in v0.167.0

type PublishedJSONLD struct {
	Type string `json:"@type"`
	Name string `json:"name"`
	URL  string `json:"url"`
}

Jump to

Keyboard shortcuts

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