base

package
v0.0.0-...-3341fa3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.2.680

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BodyCss

func BodyCss(bodyCss string) templwind.OptFunc[Opts]

func EchoCtx

func EchoCtx(e echo.Context) templwind.OptFunc[Opts]

func Favicon

func Favicon(favicon string) templwind.OptFunc[Opts]

func FooterScripts

func FooterScripts(footerScripts ...string) templwind.OptFunc[Opts]

func HeadScripts

func HeadScripts(headScripts ...string) templwind.OptFunc[Opts]

func Meta

func Meta(meta templ.Component) templwind.OptFunc[Opts]

func New

func New(opts ...templwind.OptFunc[Opts]) templ.Component

New creates a new component

func NewWithOpts

func NewWithOpts(opt *Opts) templ.Component

NewWithOpts creates a new component with the given opt

func Stylesheets

func Stylesheets(stylesheets ...string) templwind.OptFunc[Opts]

func Title

func Title(title string) templwind.OptFunc[Opts]

Types

type Opts

type Opts struct {
	EchoCtx       echo.Context
	Title         string
	Meta          templ.Component
	Favicon       string
	Stylesheets   []string
	HeadScripts   []string
	FooterScripts []string
	BodyCss       string
}

Options struct defines the configuration for the AppShell component.

func WithOpts

func WithOpts(opts ...templwind.OptFunc[Opts]) *Opts

WithOpts builds the options with the given opt

Jump to

Keyboard shortcuts

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