components

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 5 Imported by: 3

Documentation

Overview

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accordian

func Accordian(id string) templ.Component

func AccordianItem

func AccordianItem(id, title string, expanded bool) templ.Component

func BodyWithProps added in v0.0.11

func BodyWithProps(props BodyProps) templ.Component
func ButtonLink(text string, url string) templ.Component

func Card

func Card(class ...string) templ.Component

func CloseModal

func CloseModal(id string) templ.ComponentScript

func Container

func Container(classes ...string) templ.Component
func Footer(packageName, version string) templ.Component

func HeroGrid

func HeroGrid() templ.Component

func HeroNumber

func HeroNumber(props HeroNumberProps) templ.Component
func MenuCTA(text string, url string) templ.Component
func Modal(id string, title string, size ...string) templ.Component

Modal is a generic modal component that can accept child content and size Size options: 'sm', 'md', 'lg', 'xl', 'full'

func ModalScript

func ModalScript() templ.Component

func OpenModal

func OpenModal(id string) templ.ComponentScript

func Scripts

func Scripts(scripts ...templ.Component) templ.Component

func ScriptsSimple

func ScriptsSimple() templ.Component

func Section

func Section() templ.Component

func ThemeToggle

func ThemeToggle() templ.Component

Theme toggle component

func ThemeToggleScript

func ThemeToggleScript() templ.Component

Types

type Alternate added in v0.0.20

type Alternate struct {
	Title string
	URL   string
	Type  string
}

type BodyProps added in v0.0.11

type BodyProps struct {
	Title        string
	CanonicalURL string
	Language     string
	Meta         map[string]string
	Alternates   []Alternate
	SocialCard   *SocialCard
}

type HeroNumberProps

type HeroNumberProps struct {
	Count   int
	Title   string
	Link    string
	LinkURL string

	HelpText string
	HelpURL  templ.SafeURL
}

func (HeroNumberProps) ID

func (p HeroNumberProps) ID() string

type SocialCard added in v0.0.19

type SocialCard struct {
	Description string
	Image       string
	ImageAlt    string
	Type        string // "website", "article", etc.
	SiteName    string
}

Directories

Path Synopsis
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943

Jump to

Keyboard shortcuts

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