base

package
v0.0.0-...-977d426 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

templ: version: v0.2.747

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Show

func Show(props BaseProps) templ.Component

Types

type BaseProps

type BaseProps struct {
	Title                string
	HeadComponent        templ.Component
	BodyContentComponent templ.Component
}

type ElementProps

type ElementProps struct {
	Id                string
	AdditionalClasses []string
	DataAttributes    templ.Attributes
	Style             string
	IsDisabled        bool
	IsVisible         bool
	AriaLabel         string
	AriaDescribedById string
	HTMX              HTMXProps
	ExtraAttributes   map[string]any
}

type FormElementProps

type FormElementProps struct {
	ElementProps
	IsReadOnly bool
	Value      string
}

type FormListProps

type FormListProps struct {
	Text  string
	Value string
}

type HTMXProps

type HTMXProps struct {
	IsBoosted          bool
	Verb               VerbType
	PostDestination    string
	DeleteDestination  string
	Encoding           string
	TargetSelector     string
	IndicatorSelector  string
	Swap               HTMXSwapType
	SwapOutOfBand      bool
	Include            string
	Trigger            string
	PushURL            bool
	On                 string
	HasHTML5Validation bool
}

func (*HTMXProps) GetAttributes

func (hp *HTMXProps) GetAttributes() (htmxAttributes map[string]any)

type HTMXSwapType

type HTMXSwapType string
const InnerSwapType HTMXSwapType = "innerHTML"
const OuterSwapType HTMXSwapType = "outerHTML"

type ScrollSpyProps

type ScrollSpyProps struct {
}

type VerbType

type VerbType string
const GetVerbType VerbType = "get"
const PostVerbType VerbType = "post"

Directories

Path Synopsis
templ: version: v0.2.747
templ: version: v0.2.747

Jump to

Keyboard shortcuts

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