partials

package
v0.0.0-...-f377bbc Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

templ: version: v0.2.778

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BookSearchResults

func BookSearchResults(page page.Page[dusk.Book], err error) templ.Component
func BreadCrumb(b BreadcrumbGroup) templ.Component

func DefaultError

func DefaultError() templ.Component

func Empty

func Empty() templ.Component

func Error

func Error(err error) templ.Component

func ErrorFromString

func ErrorFromString(message string) templ.Component
func Footer(revision string) templ.Component

func ItemSearch

func ItemSearch(path, target string) templ.Component

func ItemSearchResults

func ItemSearchResults[T any](page page.Page[T], path, target string, err error) templ.Component

func Library

func Library(page page.Page[dusk.Book], err error) templ.Component

func ModalButton

func ModalButton(attrs templ.Attributes) templ.Component

func ModalDialog

func ModalDialog() templ.Component
func Navbar() templ.Component

func Tabs

func Tabs(t TabGroup, defaultTab string) templ.Component

func ToastInfo

func ToastInfo(title, message, button string) templ.Component

func ToastOOBSwap

func ToastOOBSwap() templ.Component

func ToastRawInfo

func ToastRawInfo(title, message, button string) templ.Component

Types

type BreadcrumbGroup struct {
	Current string
	Order   []string
	LinkMap map[string]string
}

type Tab

type Tab struct {
	Name      string
	Link      string
	Component templ.Component
}

type TabGroup

type TabGroup struct {
	RootPath string

	// order of tabs in tab group by link
	Order []string

	Tabs []Tab
}

func (TabGroup) Select

func (t TabGroup) Select(selected string) templ.Component

Select tab from tab group and render component

Directories

Path Synopsis
templ: version: v0.2.778
templ: version: v0.2.778

Jump to

Keyboard shortcuts

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