Documentation
¶
Overview ¶
templ: version: v0.3.894
templ: version: v0.3.894
templ: version: v0.3.894
templ: version: v0.3.894
templ: version: v0.3.894
templ: version: v0.3.894
templ: version: v0.3.894
templ: version: v0.3.894
Index ¶
- Constants
- func Accordion(componentSettings AccordionSettings) templ.Component
- func Alert(componentSettings AlertSettings) templ.Component
- func CloakLoading(componentSettings CloakLoadingSettings) templ.Component
- func LoadingOverlay(componentSettings LoadingOverlaySettings) templ.Component
- func Modal(componentSettings ModalSettings) templ.Component
- func Sidebar(componentSettings SidebarSettings) templ.Component
- func Tag(componentSettings TagSettings) templ.Component
- func Toast(componentSettings ToastSettings) templ.Component
- type AccordionItemSettings
- type AccordionSettings
- type AlertSettings
- type CloakLoadingSettings
- type LoadingOverlaySettings
- type ModalSettings
- type SidebarSettings
- type TagSettings
- type ToastSettings
Constants ¶
View Source
const ( AlertVariationSuccess string = "success" AlertVariationWarning string = "warning" AlertVariationError string = "error" AlertVariationInfo string = "info" AlertSizeXs string = "xs" AlertSizeSm string = "sm" AlertSizeMd string = "md" AlertSizeLg string = "lg" AlertSizeXl string = "xl" AlertRingThicknessXs string = "xs" AlertRingThicknessSm string = "sm" AlertRingThicknessMd string = "md" AlertRingThicknessLg string = "lg" AlertRingThicknessXl string = "xl" AlertBorderRadiusNone string = "none" AlertBorderRadiusXs string = "xs" AlertBorderRadiusSm string = "sm" AlertBorderRadiusMd string = "md" AlertBorderRadiusLg string = "lg" AlertBorderRadiusXl string = "xl" AlertShadowSizeNone string = "none" AlertShadowSizeXs string = "xs" AlertShadowSizeSm string = "sm" AlertShadowSizeMd string = "md" AlertShadowSizeLg string = "lg" AlertShadowSizeXl string = "xl" )
View Source
const ( CloakLoadingIconSizeXs string = "2rem" CloakLoadingIconSizeSm string = "3rem" CloakLoadingIconSizeMd string = "5rem" CloakLoadingIconSizeLg string = "7rem" CloakLoadingTextSizeXs string = "0.75rem" CloakLoadingTextSizeSm string = "1rem" CloakLoadingTextSizeMd string = "1.25rem" CloakLoadingTextSizeLg string = "1.5rem" CloakLoadingAnimationNameBounce string = "bounce" CloakLoadingAnimationNamePing string = "ping" CloakLoadingAnimationNamePulse string = "pulse" CloakLoadingAnimationNameSpin string = "spin" )
View Source
const ( LoadingOverlayIconSizeXs string = "text-2xl" LoadingOverlayIconSizeSm string = "text-3xl" LoadingOverlayIconSizeMd string = "text-5xl" LoadingOverlayIconSizeLg string = "text-7xl" LoadingOverlayAnimationNameBounce string = "bounce" LoadingOverlayAnimationNamePing string = "ping" LoadingOverlayAnimationNamePulse string = "pulse" LoadingOverlayAnimationNameSpin string = "spin" )
View Source
const ( ModalSizeXs string = "xs" ModalSizeSm string = "sm" ModalSizeMd string = "md" ModalSizeLg string = "lg" ModalSizeXl string = "xl" ModalSizeFull string = "full" ModalBorderRadiusNone string = "none" ModalBorderRadiusXs string = "xs" ModalBorderRadiusSm string = "sm" ModalBorderRadiusMd string = "md" ModalBorderRadiusLg string = "lg" ModalBorderRadiusXl string = "xl" ModalShadowSizeNone string = "none" ModalShadowSizeXs string = "xs" ModalShadowSizeSm string = "sm" ModalShadowSizeMd string = "md" ModalShadowSizeLg string = "lg" ModalShadowSizeXl string = "xl" ModalRingThicknessXs string = "xs" ModalRingThicknessSm string = "sm" ModalRingThicknessMd string = "md" ModalRingThicknessLg string = "lg" ModalRingThicknessXl string = "xl" )
View Source
const ( SidebarSideLeft string = "left" SidebarSideRight string = "right" SidebarAttachmentModeInline string = "inline" SidebarAttachmentModeFixed string = "fixed" )
View Source
const ( TagSizeXs string = "xs" TagSizeSm string = "sm" TagSizeMd string = "md" TagSizeLg string = "lg" TagSizeXl string = "xl" TagRingThicknessXs string = "xs" TagRingThicknessSm string = "sm" TagRingThicknessMd string = "md" TagRingThicknessLg string = "lg" TagRingThicknessXl string = "xl" TagRadiusNone string = "none" TagRadiusXs string = "xs" TagRadiusSm string = "sm" TagRadiusMd string = "md" TagRadiusLg string = "lg" TagRadiusXl string = "xl" TagRadiusFull string = "full" )
View Source
const ( ToastSizeXs string = "xs" ToastSizeSm string = "sm" ToastSizeMd string = "md" ToastSizeLg string = "lg" ToastRingThicknessXs string = "xs" ToastRingThicknessSm string = "sm" ToastRingThicknessMd string = "md" ToastRingThicknessLg string = "lg" ToastRingThicknessXl string = "xl" ToastRadiusNone string = "none" ToastRadiusXs string = "xs" ToastRadiusSm string = "sm" ToastRadiusMd string = "md" ToastRadiusLg string = "lg" ToastRadiusXl string = "xl" ToastRadiusFull string = "full" )
Variables ¶
This section is empty.
Functions ¶
func Accordion ¶
func Accordion(componentSettings AccordionSettings) templ.Component
func Alert ¶ added in v0.1.4
func Alert(componentSettings AlertSettings) templ.Component
func CloakLoading ¶ added in v0.0.8
func CloakLoading(componentSettings CloakLoadingSettings) templ.Component
func LoadingOverlay ¶ added in v0.0.6
func LoadingOverlay(componentSettings LoadingOverlaySettings) templ.Component
func Modal ¶ added in v0.0.9
func Modal(componentSettings ModalSettings) templ.Component
func Sidebar ¶ added in v0.0.3
func Sidebar(componentSettings SidebarSettings) templ.Component
func Tag ¶
func Tag(componentSettings TagSettings) templ.Component
func Toast ¶ added in v0.0.5
func Toast(componentSettings ToastSettings) templ.Component
Types ¶
type AccordionItemSettings ¶
type AccordionSettings ¶
type AccordionSettings struct {
Items []AccordionItemSettings
}
type AlertSettings ¶ added in v0.1.4
type AlertSettings struct {
// OptionalFields
ContentHtml templ.Component
Title string
TitleOneWayStatePath string
TitleLeftIcon string
TitleLeftIconTwoWayStatePath string
TitleRightIcon string
TitleRightIconTwoWayStatePath string
Description string
DescriptionOneWayStatePath string
DescriptionLeftIcon string
DescriptionLeftIconTwoWayStatePath string
DescriptionRightIcon string
DescriptionRightIconTwoWayStatePath string
Variation string
Size string
BackgroundColor string
TextColor string
TextTitleColor string
TextDescriptionColor string
RingColor string
RingThickness string
BorderRadius string
ShadowSize string
IsCloseable bool
IsCloseableOneWayStatePath string
CloseIconBackgroundColor string
CloseIconTextColor string
OnCloseFunc string
DisplayTimeoutSeconds int
OnTimeoutFunc string
}
type CloakLoadingSettings ¶ added in v0.0.8
type LoadingOverlaySettings ¶ added in v0.0.6
type ModalSettings ¶ added in v0.0.9
type ModalSettings struct {
MiddleContent templ.Component
// OptionalFields
Title string
TitleOneWayStatePath string
HeaderContent templ.Component
Size string
SizeTwoWayStatePath string
BackdropColor string
BackgroundColor string
TextColor string
BorderRadius string
ShadowSize string
RingColor string
RingThickness string
IsVisibleTwoWayStatePath string
IsUncloseable bool
IsUnresizable bool
OnCloseFunc string
OnResizeFunc string
}
type SidebarSettings ¶ added in v0.0.3
type SidebarSettings struct {
MiddleContent templ.Component
// OptionalFields
HeaderContent templ.Component
Width string
BackgroundColor string
IsVisibleTwoWayStatePath string
IsCollapsed bool
IsCollapsedTwoWayStatePath string
AttachmentMode string
AttachmentModeTwoWayStatePath string
Side string
SideTwoWayStatePath string
IsOffCanvas bool
IsOffCanvasTwoWayStatePath string
}
type TagSettings ¶
type TagSettings struct {
// OptionalFields
Size string
OuterRingThickness string
OuterRingColor string
OuterBackgroundColor string
OuterTextColor string
OuterLeftIcon string
OuterLeftLabel string
OuterLeftLabelOneWayStatePath string
OuterLeftOnClickFunc string
OuterRightIcon string
OuterRightLabel string
OuterRightLabelOneWayStatePath string
OuterRightOnClickFunc string
OuterRadius string
InnerIcon string
InnerLabel string
InnerLabelOneWayStatePath string
InnerBackgroundColor string
InnerTextColor string
InnerRadius string
}
Click to show internal directories.
Click to hide internal directories.