components

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Article

func Article(a ArticleArgs) templ.Component

func ArticleList

func ArticleList(a ArticleListArgs) templ.Component

func BackButton added in v0.6.0

func BackButton(link string) templ.Component

func ChangelogContainer

func ChangelogContainer(args ChangelogContainerArgs) templ.Component

Contains the article list and footer

func Footer(args FooterArgs) templ.Component

func ForwardButton added in v0.6.0

func ForwardButton(link string) templ.Component

func HeaderContainer

func HeaderContainer() templ.Component

func HeaderContent

func HeaderContent(args HeaderArgs) templ.Component

func KBD added in v0.6.0

func KBD(key string) templ.Component

func LogoImg

func LogoImg(args Logo) templ.Component
func Navbar() templ.Component
func NavbarActions() templ.Component

func Prose added in v0.4.0

func Prose() templ.Component

A wrapper to apply tailwind typography styles to the underlying texts

func RSS

func RSS(args RSSArgs) templ.Component

func SearchButton added in v0.6.0

func SearchButton(args SearchButtonArgs) templ.Component

func SearchResult added in v0.6.0

func SearchResult(h search.SearchResult) templ.Component

func SearchResults added in v0.6.0

func SearchResults(args SearchResultsArgs) templ.Component

func Tag added in v0.2.0

func Tag(name string) templ.Component

func TagSelectors added in v0.6.0

func TagSelectors(tags []string) templ.Component

func Theme added in v0.1.5

func Theme(args ThemeArgs) templ.Component

func Toast added in v0.6.0

func Toast(t ToastType, msg string) templ.Component

func ToastContainer added in v0.6.0

func ToastContainer() templ.Component

Types

type ArticleArgs

type ArticleArgs struct {
	ID          string
	Title       string
	Description string
	PublishedAt time.Time
	Tags        []string
	Content     string
}

type ArticleListArgs

type ArticleListArgs struct {
	Articles []ArticleArgs
}

type ChangelogContainerArgs added in v0.4.0

type ChangelogContainerArgs struct {
	CurrentURL     string
	HasMoreArticle bool
}

type FooterArgs added in v0.1.9

type FooterArgs struct {
	HidePoweredBy bool
}

type HeaderArgs

type HeaderArgs struct {
	Title    apitypes.NullString
	Subtitle apitypes.NullString
	ShowBack bool
}

type RSSArgs

type RSSArgs struct {
	FeedURL string
}

type SearchButtonArgs added in v0.6.0

type SearchButtonArgs struct {
	HasMetaKey bool
	Active     bool // whether the click should open the search modal
}

type SearchResultsArgs added in v0.6.0

type SearchResultsArgs struct {
	Query  string
	Result search.SearchResults
}

type ThemeArgs added in v0.1.5

type ThemeArgs struct {
	ColorScheme apitypes.ColorScheme
}

type ToastArgs added in v0.6.0

type ToastArgs struct {
	Msg  string
	Type ToastType
}

type ToastType added in v0.6.0

type ToastType int
const (
	Success ToastType = iota
	Warning
	Fail
)

Jump to

Keyboard shortcuts

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