components

package
v0.0.0-...-24fabdb Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.2.747

templ: version: v0.2.747

templ: version: v0.2.747

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ButtonOutlined

func ButtonOutlined(id, text, tabIndex string, attrs templ.Attributes) templ.Component

func ButtonSubmit

func ButtonSubmit(id, text, tabIndex string, attrs templ.Attributes) templ.Component

Buttons

func ButtonText

func ButtonText(id, text, tabIndex string, attrs templ.Attributes) templ.Component

func Card

func Card(idSuffix string, cardHeader, cardContent, cardFooter templ.Component) templ.Component

func CardActions

func CardActions(actions ...templ.Component) templ.Component

func CardContent

func CardContent(content templ.Component) templ.Component

func CardImage

func CardImage(imageURL, imageAlt string) templ.Component

func CardTitle

func CardTitle(title string) templ.Component

func DisplayError

func DisplayError(err string, hide bool) templ.Component

func ErrorPage

func ErrorPage(statusCode int, pageMsg string, errMsg error) templ.Component
func Header(username string) templ.Component

func Hide

func Hide(hide bool) string

Displays

func Index

func Index(username string) templ.Component

func InputOutlined

func InputOutlined(inputID, inputType, inputName string, attrs templ.Attributes) templ.Component

Inputs

func Login

func Login(redirect string) templ.Component

func LoginFields

func LoginFields(redirect string) templ.Component

func Logs

func Logs() templ.Component

func OnKeyFocusID

func OnKeyFocusID(keyCode int, id string) templ.ComponentScript

Scripts

func Page

func Page(title string, content templ.Component) templ.Component

item-center: center the content vertically content-center: center the content horizontally

func Results

func Results() templ.Component

func ResultsItem

func ResultsItem(name string, waiting, success bool) templ.Component

func SetTheme

func SetTheme(theme ColorTheme)

func Signup

func Signup() templ.Component

func SignupFields

func SignupFields() templ.Component

func Tile

func Tile(idSuffix, title string) templ.Component

func TileIndicatorFailComplete

func TileIndicatorFailComplete(id string) templ.Component

func TileIndicatorFailIncomplete

func TileIndicatorFailIncomplete(id string) templ.Component

func TileIndicatorIncomplete

func TileIndicatorIncomplete(id string) templ.Component

func TileIndicatorSuccessComplete

func TileIndicatorSuccessComplete(id string) templ.Component

func TileIndicatorSuccessIncomplete

func TileIndicatorSuccessIncomplete(id string) templ.Component

func Tiles

func Tiles() templ.Component

Types

type Color

type Color struct {
	Color string
	Text  string
}

type ColorTheme

type ColorTheme struct {
	Primary   Colors
	Secondary Colors
}

func DefaultTheme

func DefaultTheme() ColorTheme

func GetTheme

func GetTheme() ColorTheme

type Colors

type Colors struct {
	Color Color
	Light Color
	Dark  Color
}

Jump to

Keyboard shortcuts

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