Documentation ¶
Overview ¶
templ: version: v0.2.707
templ: version: v0.2.707
Index ¶
- func Button(config ButtonConfig) templ.Component
- func ButtonDanger(text string, icon any, hollow ...bool) templ.Component
- func ButtonPrimary(text string, icon any, hollow ...bool) templ.Component
- func ButtonSecondary(text string, icon any, hollow ...bool) templ.Component
- func ButtonSuccess(text string, icon any, hollow ...bool) templ.Component
- func ButtonWarning(text string, icon any, hollow ...bool) templ.Component
- func Header(lvel int, headingText, subText string, components ...templ.Component) templ.Component
- func Heading(level uint8, text string) templ.Component
- func Heading1(text string) templ.Component
- func Heading2(text string) templ.Component
- func Heading3(text string) templ.Component
- func Heading4(text string) templ.Component
- func Heading5(text string) templ.Component
- func Heading6(text string) templ.Component
- func NewButton(text string, args ...interface{}) templ.Component
- type ButtonConfig
- type ButtonType
- type ComponentList
- type Item
- type Items
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Button ¶
func Button(config ButtonConfig) templ.Component
Types ¶
type ButtonConfig ¶
type ButtonConfig struct { Text string Icon templ.Component Type ButtonType }
type ButtonType ¶
type ButtonType uint8
const ( ButtonTypePrimary ButtonType = 1 << iota ButtonTypeSecondary ButtonTypeSuccess ButtonTypeWarning ButtonTypeDanger ButtonTypeHollow )
type ComponentList ¶
type ComponentList[T Item] struct { // contains filtered or unexported fields }
func (*ComponentList[T]) All ¶
func (i *ComponentList[T]) All() []T
func (*ComponentList[T]) Append ¶
func (i *ComponentList[T]) Append(item T)
func (*ComponentList[T]) Delete ¶
func (i *ComponentList[T]) Delete(name string) (ok bool)
func (*ComponentList[T]) Get ¶
func (i *ComponentList[T]) Get(name string) (T, bool)
Click to show internal directories.
Click to hide internal directories.