Documentation
¶
Overview ¶
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
Index ¶
- Constants
- Variables
- func Alert(t AlertType) templ.Component
- func AlertDescription() templ.Component
- func AlertTitle() templ.Component
- func Button(t ButtonType, attr ...templ.Attributes) templ.Component
- func ButtonLink(t ButtonType, href string, attr ...templ.Attributes) templ.Component
- func ButtonRow(align ...Align) templ.Component
- func Card(attr ...templ.Attributes) templ.Component
- func CardBody(attr ...templ.Attributes) templ.Component
- func CardDescription(attr ...templ.Attributes) templ.Component
- func CardTitle(attr ...templ.Attributes) templ.Component
- func CodeInput(name string, n int) templ.Component
- func CopyButton(text string) templ.Component
- func FirstLetterToUppercase(s string) string
- func FormFields() templ.Component
- func FullPageCard() templ.Component
- func Input(label, name string, attr ...templ.Attributes) templ.Component
- func KVInput(label, name, placeholderK, placeholderV string, values map[string]string) templ.Component
- func LoadingIndicator() templ.Component
- func Modal(id string) templ.Component
- func ModalCloseAttr() templ.Attributes
- func ModalCloseButton() templ.Component
- func ModalOpenAttr(id string) templ.Attributes
- func MultiInput(label, name string, t InputType, values []string, ...) templ.Component
- func ShowTab(id string, attr ...templ.Attributes) templ.Attributes
- func Sidebar() templ.Component
- func SidebarContainer() templ.Component
- func SidebarContent() templ.Component
- func SidebarHeader() templ.Component
- func SidebarLinks(links []SidebarLink, currentPath ...string) templ.Component
- func StatusDot(t StatusDotType) templ.Component
- func Table() templ.Component
- func TableHead(hs ...string) templ.Component
- func TextInput(attributes ...templ.Attributes) templ.Component
- func Toast(t ToastType) templ.Component
- func ToastContainer(x Position, y Position) templ.Component
- type AlertType
- type Align
- type ButtonType
- type InputType
- type Position
- type SidebarLink
- type StatusDotType
- type ToastType
Constants ¶
View Source
const ( AlertInfo = iota AlertWarning AlertError AlertSuccess )
Variables ¶
View Source
var ( IconSmall = templ.Attributes{"class": "icon_small"} IconNormal = templ.Attributes{"class": "icon_normal"} IconLarge = templ.Attributes{"class": "icon_large"} )
View Source
var ButtonTypeClass = map[ButtonType]string{ ButtonTypePrimary: "primary", ButtonTypeSecondary: "secondary", ButtonTypeAccent: "accent", ButtonTypeIcon: "icon", ButtonTypeGhost: "ghost", ButtonTypeDanger: "danger", }
View Source
var InputTypeMap = map[InputType]string{ InputTypeText: "text", InputTypeNumber: "number", }
View Source
var PositionClassMap = map[Position]string{ PositionStart: "start", PositionMiddle: "middle", PositionEnd: "end", }
View Source
var StatusDotClassMap = map[StatusDotType]string{ StatusDotSuccess: "success", StatusDotError: "error", }
View Source
var ToastTypeClassMap = map[ToastType]string{ ToastTypeSuccess: "success", ToastTypeError: "error", ToastTypeInfo: "info", ToastTypeWarning: "warning", }
Functions ¶
func AlertDescription ¶
func AlertTitle ¶
func Button ¶
func Button(t ButtonType, attr ...templ.Attributes) templ.Component
func ButtonLink ¶
func ButtonLink(t ButtonType, href string, attr ...templ.Attributes) templ.Component
func CardDescription ¶
func CardDescription(attr ...templ.Attributes) templ.Component
func CopyButton ¶
func FirstLetterToUppercase ¶
func FormFields ¶
func FullPageCard ¶
func LoadingIndicator ¶
func ModalCloseAttr ¶
func ModalCloseAttr() templ.Attributes
func ModalCloseButton ¶
func ModalOpenAttr ¶
func ModalOpenAttr(id string) templ.Attributes
func MultiInput ¶
func ShowTab ¶
func ShowTab(id string, attr ...templ.Attributes) templ.Attributes
func SidebarContainer ¶
Wraps the sidebar and your page content
func SidebarContent ¶
func SidebarHeader ¶
func SidebarLinks ¶
func SidebarLinks(links []SidebarLink, currentPath ...string) templ.Component
func StatusDot ¶
func StatusDot(t StatusDotType) templ.Component
Types ¶
type ButtonType ¶
type ButtonType int
const ( ButtonTypePrimary ButtonType = iota ButtonTypeSecondary ButtonTypeAccent ButtonTypeIcon ButtonTypeGhost ButtonTypeDanger )
type StatusDotType ¶
type StatusDotType uint16
const ( StatusDotSuccess StatusDotType = iota StatusDotError )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.