components

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

templ: version: v0.2.543

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertBg

func AlertBg(color utils.Color) templ.Component

func AlertOutlined

func AlertOutlined(color utils.Color) templ.Component

func ButtonFilled

func ButtonFilled(align utils.Alignment, color utils.Color, buttonText, buttonLink string) templ.Component

func ButtonOutlined

func ButtonOutlined(align utils.Alignment, color utils.Color, buttonText, buttonLink string) templ.Component

func Col1of3

func Col1of3(align utils.Alignment) templ.Component

func Col1of4

func Col1of4(align utils.Alignment) templ.Component

func Col2of4

func Col2of4(align utils.Alignment) templ.Component

func Col3of4

func Col3of4(align utils.Alignment) templ.Component

func ColFull

func ColFull(align utils.Alignment) templ.Component

func ColHalf

func ColHalf(align utils.Alignment) templ.Component

func Container

func Container(color utils.Color) templ.Component

func Coupon

func Coupon(data CouponData) templ.Component

func Discount

func Discount(data DiscountData) templ.Component

func Divider

func Divider() templ.Component

func H1

func H1(heading string) templ.Component

func H2

func H2(heading string) templ.Component

func Image

func Image(fileURL, altText string) templ.Component

func LabelFilled

func LabelFilled(color utils.Color, text string) templ.Component

func LabelOutlined

func LabelOutlined(color utils.Color, text string) templ.Component

func Layout

func Layout(lang, subject, previewText string) templ.Component
func Link(text, url string) templ.Component

func List

func List(items ...string) templ.Component
func Logo(fileURL string, link ...string) templ.Component

func LogoImage

func LogoImage(fileURL, altText, link, width string) templ.Component

func LogoText

func LogoText(text string, link ...string) templ.Component

func P

func P() templ.Component

func Row

func Row() templ.Component

func SecondaryText

func SecondaryText() templ.Component

func Spacer

func Spacer() templ.Component

func TableRowSpacer

func TableRowSpacer() templ.Component

func TableSpacer

func TableSpacer() templ.Component

func Wrapper

func Wrapper() templ.Component

Types

type CTA

type CTA struct {
	Text    string
	Link    string
	SubText string
}

type CouponData

type CouponData struct {
	DiscountPercent uint8
	Coupon          string
	CTA             CTA
}
func (d CouponData) CtaLink() templ.SafeURL

func (CouponData) CtaSubText

func (d CouponData) CtaSubText() string

func (CouponData) CtaText

func (d CouponData) CtaText() string

func (CouponData) PercentStr

func (d CouponData) PercentStr() string

PercentStr returns the percent as a string

type DiscountData

type DiscountData struct {
	Headline      string
	Discount      string
	ConditionText string
	CTA           CTA
}
func (c DiscountData) CtaLink() templ.SafeURL

func (DiscountData) CtaText

func (c DiscountData) CtaText() string

func (DiscountData) DiscountLine

func (c DiscountData) DiscountLine() string

func (DiscountData) GetHeadline

func (c DiscountData) GetHeadline() string

Jump to

Keyboard shortcuts

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