shared

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

Index

Constants

View Source
const ToastId = "toast"

Variables

This section is empty.

Functions

func Base

func Base(c Context, title string) templ.Component

func Drawer

func Drawer(c Context) templ.Component

func DrawerWrapper

func DrawerWrapper(c Context) templ.Component

func ErrorToast

func ErrorToast(message string) templ.Component
func Footer() templ.Component
func Header(title string) templ.Component

func InfoToast

func InfoToast(message string) templ.Component

func ThemeToggle

func ThemeToggle() templ.Component

func ToastPlaceHolder

func ToastPlaceHolder() templ.Component

func UserMenu

func UserMenu(c Context) templ.Component

Types

type Context

type Context struct {
	User     *pbmodels.Record
	Lists    []*models.List
	Settings Settings
}

Context is the base context that needs to be injected in all pages

type Settings

type Settings struct {
	ShowArchived bool
}

Jump to

Keyboard shortcuts

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