Documentation
¶
Overview ¶
templ: version: v0.3.1070
templ: version: v0.3.1070
templ: version: v0.3.1070
templ: version: v0.3.1070
templ: version: v0.3.1070
templ: version: v0.3.1070
templ: version: v0.3.1070
templ: version: v0.3.1070
templ: version: v0.3.1070
templ: version: v0.3.1070
Index ¶
- Constants
- func Accordion(componentSettings AccordionSettings) templ.Component
- func Alert(componentSettings AlertSettings) templ.Component
- func CloakLoading(componentSettings CloakLoadingSettings) templ.Component
- func ConfirmDialog(componentSettings ConfirmationDialogSettings) templ.Component
- func CriticalDialog(componentSettings ConfirmationDialogSettings) templ.Component
- func DeleteDialog(componentSettings ConfirmationDialogSettings) templ.Component
- func HeaderBlock(componentSettings HeaderBlockSettings) templ.Component
- func HeaderIcon(componentSettings HeaderIconSettings) templ.Component
- func LoadingOverlay(componentSettings LoadingOverlaySettings) templ.Component
- func Modal(componentSettings ModalSettings) templ.Component
- func Tag(componentSettings TagSettings) templ.Component
- func Toast(componentSettings ToastSettings) templ.Component
- func WarningDialog(componentSettings ConfirmationDialogSettings) templ.Component
- type AccordionItemSettings
- type AccordionSettings
- type AlertSettings
- type CloakLoadingSettings
- type ConfirmationDialogSettings
- type HeaderBlockSettings
- type HeaderIconSettings
- type LoadingOverlaySettings
- type ModalSettings
- 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" )
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 ( ConfirmationDialogSizeXs string = "xs" ConfirmationDialogSizeSm string = "sm" ConfirmationDialogSizeMd string = "md" ConfirmationDialogSizeLg string = "lg" ConfirmationDialogSizeXl string = "xl" ConfirmationDialogSizeXxl string = "xxl" )
View Source
const ( HeaderBlockHeadingLevelOne string = "1" HeaderBlockHeadingLevelTwo string = "2" HeaderSizeXs string = "xs" HeaderSizeSm string = "sm" HeaderSizeMd string = "md" HeaderSizeLg string = "lg" HeaderSizeXl string = "xl" )
View Source
const ( HeaderIconPositionLeft string = "left" HeaderIconPositionTop string = "top" )
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" ModalSizeXxl string = "xxl" ModalSizeFull 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 ConfirmDialog ¶ added in v0.2.2
func ConfirmDialog(componentSettings ConfirmationDialogSettings) templ.Component
func CriticalDialog ¶ added in v0.2.2
func CriticalDialog(componentSettings ConfirmationDialogSettings) templ.Component
func DeleteDialog ¶ added in v0.2.2
func DeleteDialog(componentSettings ConfirmationDialogSettings) templ.Component
func HeaderBlock ¶ added in v0.2.2
func HeaderBlock(componentSettings HeaderBlockSettings) templ.Component
func HeaderIcon ¶ added in v0.2.2
func HeaderIcon(componentSettings HeaderIconSettings) 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 Tag ¶
func Tag(componentSettings TagSettings) templ.Component
func Toast ¶ added in v0.0.5
func Toast(componentSettings ToastSettings) templ.Component
func WarningDialog ¶ added in v0.2.2
func WarningDialog(componentSettings ConfirmationDialogSettings) templ.Component
Types ¶
type AccordionItemSettings ¶
type AccordionSettings ¶
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
MaxWidth 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 ConfirmationDialogSettings ¶ added in v0.2.2
type ConfirmationDialogSettings struct {
IsVisibleTwoWayStatePath string
OnConfirmFunc string
// OptionalFields
ActionsContent templ.Component
CancelButtonLabel string
CancelFunc string
ConfirmButtonIcon string
ConfirmButtonId string
ConfirmButtonLabel string
HeaderContent templ.Component
HeaderIcon string
HeaderIconBackgroundColor string
HeaderIconBorderRadius string
HeaderIconColor string
HeaderIconPaddingSize string
HeaderIconPosition string
HeaderSize string
HeaderSubHeading string
HeaderSubHeadingColor string
HeaderSubHeadingOneWayStatePath string
HeaderTitle string
HeaderTitleColor string
HeaderTitleOneWayStatePath string
IsTypeToConfirmEnabled bool
IsUncloseable bool
Message string
MessageContent templ.Component
OnCloseFunc string
Size string
TargetIdStatePath string
TargetNameStatePath string
TextCase string
TextColor string
TypeToConfirmExpectedValue string
TypeToConfirmValueTwoWayStatePath string
WidthPercent int
HeightPercent int
MinWidthPercent int
MaxWidthPercent int
MinHeightPercent int
MaxHeightPercent int
}
type HeaderBlockSettings ¶ added in v0.2.2
type HeaderBlockSettings struct {
// OptionalFields
ActionsContent templ.Component
HeaderIcon string
HeaderIconBackgroundColor string
HeaderIconBorderRadius string
HeaderIconColor string
HeaderIconPaddingSize string
HeaderIconPosition string
HeaderSize string
HeaderSubHeading string
HeaderSubHeadingColor string
HeaderSubHeadingOneWayStatePath string
HeaderTitle string
HeaderTitleColor string
HeaderTitleOneWayStatePath string
HeadingLevel string
TextCase string
TextColor string
}
type HeaderIconSettings ¶ added in v0.2.2
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
InitialSize string
CurrentSizeTwoWayStatePath string
PossibleSizes []string
WidthPercent int
HeightPercent int
MinWidthPercent int
MaxWidthPercent int
MinHeightPercent int
MaxHeightPercent int
ShouldHeightMatchContent bool
BackdropColor string
BackgroundColor string
TextColor string
BorderRadius string
ShadowSize string
RingColor string
RingThickness string
IsVisibleTwoWayStatePath string
IsUncloseable bool
IsUnresizable bool
IsMiddleContentScrollDisabled bool
OnCloseFunc string
OnResizeFunc string
}
type TagSettings ¶
type TagSettings struct {
// OptionalFields
Size string
TextCase 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
OnRemoveFunc string
RemoveButtonLabel string
InnerIcon string
InnerLabel string
InnerLabelOneWayStatePath string
InnerValueOneWayStatePath string
InnerBackgroundColor string
InnerTextColor string
InnerRadius string
}
Click to show internal directories.
Click to hide internal directories.