Documentation
¶
Overview ¶
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
Index ¶
- Constants
- func Alert(props AlertProps, attrlist ...templ.KeyValue[string, any]) templ.Component
- func Btn(p BtnProps, attrlist ...templ.KeyValue[string, any]) templ.Component
- func Checkbox(p CheckboxProps, attrlist ...templ.KeyValue[string, any]) templ.Component
- func DropMenu(attrlist ...templ.KeyValue[string, any]) templ.Component
- func DropMenuItems(attrlist ...templ.KeyValue[string, any]) templ.Component
- func DropMenuName(attrlist ...templ.KeyValue[string, any]) templ.Component
- func FieldSet(attrlist ...templ.KeyValue[string, any]) templ.Component
- func Label(p LabelProps, attrlist ...templ.KeyValue[string, any]) templ.Component
- func Legend(attrlist ...templ.KeyValue[string, any]) templ.Component
- func Menu(p MenuProps, attrlist ...templ.KeyValue[string, any]) templ.Component
- func MenuItem(attrlist ...templ.KeyValue[string, any]) templ.Component
- func MenuTitle() templ.Component
- func Radio(p RadioProps, attrlist ...templ.KeyValue[string, any]) templ.Component
- func Search() templ.Component
- func Select(p SelectProps, attrlist ...templ.KeyValue[string, any]) templ.Component
- func TextArea(p TextAreaProps, attrlist ...templ.KeyValue[string, any]) templ.Component
- func TextInput(p TextInputProps, attrlist ...templ.KeyValue[string, any]) templ.Component
- func Timeline(p TimelineProps, attrlist ...templ.KeyValue[string, any]) templ.Component
- func TimelineItem(attrlist ...templ.KeyValue[string, any]) templ.Component
- func TimelinePart(p TimelinePartProps, attrlist ...templ.KeyValue[string, any]) templ.Component
- func Toast(attrlist ...templ.KeyValue[string, any]) templ.Component
- type AlertDirection
- type AlertProps
- type AlertSeverity
- type AlertStyle
- type BtnColor
- type BtnProps
- type BtnSize
- type CheckboxColor
- type CheckboxProps
- type CheckboxSize
- type DropMenuItemsProps
- type DropMenuNameProps
- type LabelProps
- type MenuProps
- type MenuSize
- type Modal
- type ModalPosition
- type RadioColor
- type RadioProps
- type RadioSize
- type SelectColor
- type SelectProps
- type SelectSize
- type TabSize
- type TabStyle
- type Table
- func (t *Table) Body(attrlist ...templ.KeyValue[string, any]) templ.Component
- func (t *Table) Header(attrlist ...templ.KeyValue[string, any]) templ.Component
- func (t *Table) Row(attrlist ...templ.KeyValue[string, any]) templ.Component
- func (t *Table) TD(attrlist ...templ.KeyValue[string, any]) templ.Component
- func (t *Table) TH(pos int, attrlist ...templ.KeyValue[string, any]) templ.Component
- func (t *Table) Table(attrlist ...templ.KeyValue[string, any]) templ.Component
- type TableSize
- type Tabs
- type TextAreaColor
- type TextAreaProps
- type TextAreaSize
- type TextInputColor
- type TextInputProps
- type TextInputSize
- type TextInputType
- type TimelinePartProps
- type TimelinePosition
- type TimelineProps
- type ToastPosition
Constants ¶
View Source
const ( AlertSeverityInfo AlertSeverity = "alert-info" AlertSeveritySuccess AlertSeverity = "alert-success" AlertSeverityWarning AlertSeverity = "alert-warning" AlertSeverityError AlertSeverity = "alert-error" AlertStyleDash AlertStyle = "alert-dash" AlertStyleSoft AlertStyle = "alert-soft" AlertDirectionHorizontal AlertDirection = "alert-horizontal" AlertDirectionVertical AlertDirection = "alert-vertical" )
View Source
const ( BtnColorNeutral BtnColor = "btn-neutral" BtnColorPrimary BtnColor = "btn-primary" BtnColorSecondary BtnColor = "btn-secondary" BtnColorInfo BtnColor = "btn-info" BtnSizeXtraSmall BtnSize = "btn-xs" BtnSizeSmall BtnSize = "btn-sm" BtnSizeMedium BtnSize = "" BtnSizeLarge BtnSize = "btn-lg" BtnSizeXtraLarge BtnSize = "btn-xl" )
View Source
const ( CheckboxColorNeutral CheckboxColor = "checkbox-neutral" CheckboxColorPrimary CheckboxColor = "checkbox-primary" CheckboxColorSecondary CheckboxColor = "checkbox-secondary" CheckboxColorError CheckboxColor = "checkbox-error" CheckboxSizeXtraSmall CheckboxSize = "checkbox-xs" CheckboxSizeSmall CheckboxSize = "checkbox-sm" CheckboxSizeMedium CheckboxSize = "checkbox-md" CheckboxSizeLarge CheckboxSize = "checkbox-lg" CheckboxSizeXtraLarge CheckboxSize = "checkbox-xl" )
View Source
const ( RadioColorNeutral RadioColor = "radio-neutral" RadioColorPrimary RadioColor = "radio-primary" RadioColorSecondary RadioColor = "radio-secondary" RadioColorError RadioColor = "radio-error" RadioSizeXtraSmall RadioSize = "radio-xs" RadioSizeSmall RadioSize = "radio-sm" RadioSizeMedium RadioSize = "radio-md" RadioSizeLarge RadioSize = "radio-lg" RadioSizeXtraLarge RadioSize = "radio-xl" )
View Source
const ( SelectColorNeutral SelectColor = "select-neutral" SelectColorGhost SelectColor = "select-ghost" SelectColorPrimary SelectColor = "select-primary" SelectColorSecondary SelectColor = "select-secondary" SelectColorInfo SelectColor = "select-info" SelectColorError SelectColor = "select-error" SelectSizeXtraSmall SelectSize = "select-xs" SelectSizeSmall SelectSize = "select-sm" SelectSizeMedium SelectSize = "select-md" SelectSizeLarge SelectSize = "select-lg" SelectSizeXtraLarge SelectSize = "select-xl" )
View Source
const ( TabStyleLift TabStyle = "tabs-lift" TabStyleBox TabStyle = "tabs-box" TabStyleLine TabStyle = "tabs-line" TabSizeXtraSmall TabSize = "tabs-xs" TabSizeSmall TabSize = "tabs-sm" TabSizeMedium TabSize = "tabs-md" TabSizeLarge TabSize = "tabs-lg" TabSizeXtraLarge TabSize = "tabs-xl" )
View Source
const ( TextInputColorNeutral TextInputColor = "input-neutral" TextInputColorPrimary TextInputColor = "input-primary" TextInputColorSecondary TextInputColor = "input-secondary" TextInputColorError TextInputColor = "input-error" TextInputSizeXtraSmall TextInputSize = "input-xs" TextInputSizeSmall TextInputSize = "input-sm" TextInputSizeMedium TextInputSize = "input-md" TextInputSizeLarge TextInputSize = "input-lg" TextInputSizeXtraLarge TextInputSize = "input-xl" TextInputTypeText TextInputType = "text" TextInputTypeEmail TextInputType = "email" TextInputTypePassword TextInputType = "password" TextInputTypeNumber TextInputType = "number" TextInputTypeTel TextInputType = "tel" TextInputTypeSearch TextInputType = "search" TextInputTypeDate TextInputType = "date" TextInputTypeDateTimeLocal TextInputType = "datetime-local" TextInputTypeTime TextInputType = "time" TextInputTypeUrl TextInputType = "url" TextInputTypeColor TextInputType = "color" TextInputTypeWeek TextInputType = "week" TextInputTypeMonth TextInputType = "month" )
View Source
const ( TextAreaColorNeutral TextAreaColor = "textarea-neutral" TextAreaColorPrimary TextAreaColor = "textarea-primary" TextAreaColorSecondary TextAreaColor = "textarea-secondary" TextAreaSizeXtraSmall TextAreaSize = "textarea-xs" TextAreaSizeSmall TextAreaSize = "textarea-sm" TextAreaSizeMedium TextAreaSize = "textarea-md" TextAreaSizeLarge TextAreaSize = "textarea-lg" TextAreaSizeXtraLarge TextAreaSize = "textarea-xl" )
View Source
const ( ToastPositionStart = "toast-start" ToastPositionEnd = "toast-end" ToastPositionTop = "toast-top" ToastPositionBottom = "toast-bottom" ToastPositionMiddle = "toast-middle" ToastPositionCenter = "toast-center" )
Variables ¶
This section is empty.
Functions ¶
func TimelinePart ¶
Types ¶
type AlertDirection ¶ added in v0.3.0
type AlertDirection string
type AlertProps ¶ added in v0.3.0
type AlertProps struct {
Severity AlertSeverity
Style AlertStyle
Direction AlertDirection
}
type AlertSeverity ¶ added in v0.3.0
type AlertSeverity string
type AlertStyle ¶ added in v0.3.0
type AlertStyle string
type CheckboxColor ¶
type CheckboxColor string
type CheckboxProps ¶
type CheckboxProps struct {
Color CheckboxColor
Size CheckboxSize
}
type CheckboxSize ¶
type CheckboxSize string
type DropMenuItemsProps ¶
func (DropMenuItemsProps) ClassName ¶
func (p DropMenuItemsProps) ClassName() string
type DropMenuNameProps ¶
func (DropMenuNameProps) ClassName ¶
func (p DropMenuNameProps) ClassName() string
type LabelProps ¶
type Modal ¶
type Modal struct {
WithCloseBtn bool
ModalPosition ModalPosition
}
type ModalPosition ¶ added in v0.3.1
type ModalPosition string
const ( ModalPositionTop ModalPosition = "modal-top" ModalPositionBottom ModalPosition = "modal-bottom" ModalPositionMiddle ModalPosition = "modal-middle" ModalPositionStart ModalPosition = "modal-start" ModalPositionEnd ModalPosition = "modal-end" )
type RadioColor ¶
type RadioColor string
type RadioProps ¶
type RadioProps struct {
Color RadioColor
Size RadioSize
}
type SelectColor ¶
type SelectColor string
type SelectProps ¶
type SelectProps struct {
Color SelectColor
Size SelectSize
}
type SelectSize ¶
type SelectSize string
type Table ¶
type Table struct {
Zebra bool
Size TableSize
Widths []int
// contains filtered or unexported fields
}
type TextAreaColor ¶
type TextAreaColor string
type TextAreaProps ¶
type TextAreaProps struct {
Color TextAreaColor
Size TextAreaSize
}
type TextAreaSize ¶
type TextAreaSize string
type TextInputColor ¶
type TextInputColor string
type TextInputProps ¶
type TextInputProps struct {
Color TextInputColor
Size TextInputSize
Type TextInputType
}
type TextInputSize ¶
type TextInputSize string
type TextInputType ¶
type TextInputType string
type TimelinePartProps ¶
type TimelinePartProps struct {
Pos TimelinePosition
Box bool
}
type TimelinePosition ¶
type TimelinePosition string
const ( PositionStart TimelinePosition = "timeline-start" PositionMiddle TimelinePosition = "timeline-middle" PositionEnd TimelinePosition = "timeline-end" )
type TimelineProps ¶
type ToastPosition ¶ added in v0.3.0
type ToastPosition string
Click to show internal directories.
Click to hide internal directories.