Documentation
¶
Overview ¶
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
templ: version: v0.2.747
Index ¶
- func Accordion(acc AccordionAttrs) templ.Component
- func Alert(art AlertAttrs) templ.Component
- func Badge(bdg BadgeAttrs) templ.Component
- func BottomNav(attrs BottomNavAttrs) templ.Component
- func Breadcrumbs(textSize string, items []Links) templ.Component
- func Button(btn ButtonAttrs, attrs templ.Attributes) templ.Component
- func Card(cd CardAttrs, btn ButtonAttrs) templ.Component
- func Checkbox(chk FormAttrs) templ.Component
- func Code(cd CodeAttrs) templ.Component
- func Divider(dv DividerAttrs) templ.Component
- func DropdownMenu(attrs DropdownAttrs) templ.Component
- func FileInput(fi FormAttrs, attrs templ.Attributes) templ.Component
- func GetBrandColorClass(prefix, brand string) string
- func GetShapeClass(prefix, shape string) string
- func GetSizeClass(prefix, size string) string
- func Kbd(size string, text string) templ.Component
- func Menu(m MenuAttrs) templ.Component
- func Modal(modal ModalAttrs, btn ButtonAttrs, attrs templ.Attributes) templ.Component
- func Navbar(nb NavbarAttrs) templ.Component
- func Pagination(pg PaginationAttrs, btn ButtonAttrs) templ.Component
- func Progress(p ProgressAttrs) templ.Component
- func Radio(rdo FormAttrs) templ.Component
- func Range(rng RangeAttrs, attrs templ.Attributes) templ.Component
- func RenderLinks(items []Links, submenuItems map[string][]Links) templ.Component
- func Select(fms FormAttrs, attrs templ.Attributes) templ.Component
- func SetActive(index int) templ.ComponentScript
- func Table(tb TableAttrs) templ.Component
- func TextArea(fma FormAttrs, attrs templ.Attributes) templ.Component
- func TextField(fmt FormAttrs, attrs templ.Attributes) templ.Component
- func Toast(tst ToastAttrs) templ.Component
- func Tooltip(a TooltipAttrs) templ.Component
- type AccordionAttrs
- type AccordionItem
- type AlertAttrs
- type BadgeAttrs
- type BottomNavAttrs
- type BtmNavItem
- type ButtonAttrs
- type CardAttrs
- type CodeAttrs
- type DividerAttrs
- type DropdownAttrs
- type FormAttrs
- type LineCode
- type Links
- type MenuAttrs
- type MenuItem
- type ModalAttrs
- type NavbarAttrs
- type Options
- type OptsString
- type OptsStruct
- type PaginationAttrs
- type ProgressAttrs
- type RangeAttrs
- type TableAttrs
- type ToastAttrs
- type TooltipAttrs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Accordion ¶
func Accordion(acc AccordionAttrs) templ.Component
func Alert ¶
func Alert(art AlertAttrs) templ.Component
func Badge ¶
func Badge(bdg BadgeAttrs) templ.Component
func BottomNav ¶
func BottomNav(attrs BottomNavAttrs) templ.Component
func Button ¶
func Button(btn ButtonAttrs, attrs templ.Attributes) templ.Component
func Divider ¶
func Divider(dv DividerAttrs) templ.Component
func DropdownMenu ¶
func DropdownMenu(attrs DropdownAttrs) templ.Component
func GetBrandColorClass ¶
func GetShapeClass ¶
func GetSizeClass ¶
func Modal ¶
func Modal(modal ModalAttrs, btn ButtonAttrs, attrs templ.Attributes) templ.Component
func Navbar ¶
func Navbar(nb NavbarAttrs) templ.Component
func Pagination ¶
func Pagination(pg PaginationAttrs, btn ButtonAttrs) templ.Component
func Progress ¶
func Progress(p ProgressAttrs) templ.Component
func Range ¶
func Range(rng RangeAttrs, attrs templ.Attributes) templ.Component
func SetActive ¶ added in v1.7.0
func SetActive(index int) templ.ComponentScript
func Table ¶
func Table(tb TableAttrs) templ.Component
func Toast ¶
func Toast(tst ToastAttrs) templ.Component
func Tooltip ¶
func Tooltip(a TooltipAttrs) templ.Component
Types ¶
type AccordionAttrs ¶
type AccordionAttrs struct {
Items []AccordionItem
Name string
Class string
Arrow bool
PlusMinus bool
}
func (*AccordionAttrs) GetClassName ¶
func (acc *AccordionAttrs) GetClassName() string
type AccordionItem ¶
func (AccordionItem) GetClassName ¶
func (acc AccordionItem) GetClassName() string
type AlertAttrs ¶
func (AlertAttrs) GetClassName ¶
func (a AlertAttrs) GetClassName() string
type BadgeAttrs ¶
func (BadgeAttrs) GetClassName ¶
func (bdg BadgeAttrs) GetClassName() string
type BottomNavAttrs ¶
type BottomNavAttrs struct {
}
func (BottomNavAttrs) GetClassName ¶
func (btm BottomNavAttrs) GetClassName() string
type BtmNavItem ¶
type BtmNavItem struct {
}
func (BtmNavItem) GetClassName ¶ added in v1.5.6
func (item BtmNavItem) GetClassName(brand string) string
type ButtonAttrs ¶
type ButtonAttrs struct {
Type string
Brand string
Figure string
Size string
Class string
Outline bool
Active bool
Link templ.SafeURL
Click templ.ComponentScript
}
func (ButtonAttrs) GetClassName ¶
func (btn ButtonAttrs) GetClassName() string
func (ButtonAttrs) SetActive ¶
func (btn ButtonAttrs) SetActive() ButtonAttrs
func (ButtonAttrs) SetLink ¶
func (btn ButtonAttrs) SetLink(link templ.SafeURL) ButtonAttrs
type DividerAttrs ¶
type DividerAttrs struct {
Brand string
Vertical bool
Start bool
End bool
Text string
Class string
}
func (DividerAttrs) GetClassName ¶
func (div DividerAttrs) GetClassName() string
type DropdownAttrs ¶
type DropdownAttrs struct {
Position string
Items []Links
End bool
Hover bool
Class string
BtnBrand string
BtnSize string
}
func (*DropdownAttrs) GetClassName ¶
func (attrs *DropdownAttrs) GetClassName() string
type FormAttrs ¶
type FormAttrs struct {
FieldName string
FieldID string
FieldBrand string
FieldSize string
FieldBordered bool
FieldDisabled bool
FieldGhost bool
Checked string
Class string
Options Options
Placeholder string
}
func (FormAttrs) GetClassName ¶
type LineCode ¶
func (LineCode) GetClassName ¶
type ModalAttrs ¶
func (ModalAttrs) GetClassName ¶
func (m ModalAttrs) GetClassName() string
type NavbarAttrs ¶
type NavbarAttrs struct {
}
func (NavbarAttrs) GetClassName ¶
func (nb NavbarAttrs) GetClassName() string
type OptsString ¶
type OptsString []string
type OptsStruct ¶
type PaginationAttrs ¶
type ProgressAttrs ¶
type ProgressAttrs struct {
Progress string // max is always 100
Class string
Brand string
Indeterminate bool
}
func (ProgressAttrs) GetProgress ¶
func (p ProgressAttrs) GetProgress() string
type RangeAttrs ¶
func (RangeAttrs) GetClassname ¶
func (rng RangeAttrs) GetClassname() string
type TableAttrs ¶
type TableAttrs struct {
TableName string
Columns []string
PrimaryKey string
Rows []map[string]string
Zebra bool
PinColumns bool
PinRows bool
Size string
Class string
}
func (TableAttrs) GetTableClass ¶
func (t TableAttrs) GetTableClass() string
type ToastAttrs ¶
type ToastAttrs struct {
Msg string
Brand string
VerticalPosition string
HorizontalPosition string
Class string
}
func (ToastAttrs) GetClassName ¶
func (tst ToastAttrs) GetClassName() string
type TooltipAttrs ¶
type TooltipAttrs struct {
Content string
Brand string
Position string
Class string
Open bool
// contains filtered or unexported fields
}
func (TooltipAttrs) GetClassName ¶
func (a TooltipAttrs) GetClassName() string
Source Files
¶
- accordion_templ.go
- alert_templ.go
- badge_templ.go
- bottomNav_templ.go
- breadcrumbs_templ.go
- button_templ.go
- card_templ.go
- checkbox_templ.go
- code_templ.go
- divider_templ.go
- dropdown_templ.go
- fileInput_templ.go
- kbd_templ.go
- menu_templ.go
- modal_templ.go
- navbar_templ.go
- pagination_templ.go
- progress_templ.go
- radio_templ.go
- range_templ.go
- select_templ.go
- table_templ.go
- textArea_templ.go
- textField_templ.go
- toast_templ.go
- tooltip_templ.go
- utils.go