Documentation
¶
Index ¶
- Constants
- func Button(componentSettings ButtonSettings) templ.Component
- func ButtonIconOnlyWidthRemResolver(size string) float64
- func RangeSlider(componentSettings RangeSliderSettings) templ.Component
- func Thumb(componentSettings RangeSliderSettings, thumbSettings RangeSliderThumbSettings, ...) templ.Component
- type ButtonSettings
- type RangeSliderSettings
- type RangeSliderThumbSettings
- type RangeSliderTrackSettings
Constants ¶
View Source
const ( ButtonSizeXs string = "xs" ButtonSizeSm string = "sm" ButtonSizeMd string = "md" ButtonSizeLg string = "lg" ButtonSizeXl string = "xl" )
View Source
const ( RangeSliderSizeXs string = "xs" RangeSliderSizeSm string = "sm" RangeSliderSizeMd string = "md" RangeSliderSizeLg string = "lg" RangeSliderSizeXl string = "xl" RangeSliderThumbShapePipe string = "pipe" RangeSliderThumbValueBubblePositionTop string = "top" RangeSliderThumbValueBubblePositionBottom string = "bottom" RangeSliderThumbValueBubbleDisplayModeAlways string = "always" RangeSliderThumbValueBubbleDisplayModeHover string = "hover" RangeSliderThumbValueBubbleSizeXs string = "xs" RangeSliderThumbValueBubbleSizeSm string = "sm" RangeSliderThumbValueBubbleSizeMd string = "md" RangeSliderThumbValueBubbleSizeLg string = "lg" RangeSliderThumbValueBubbleSizeXl string = "xl" RangeSliderTrackValueLabelPositionTop string = "top" RangeSliderTrackValueLabelPositionBottom string = "bottom" RangeSliderTrackTooltipPositionTop string = "top" RangeSliderTrackTooltipPositionBottom string = "bottom" )
Variables ¶
This section is empty.
Functions ¶
func Button ¶
func Button(componentSettings ButtonSettings) templ.Component
func ButtonIconOnlyWidthRemResolver ¶ added in v0.3.0
func RangeSlider ¶
func RangeSlider(componentSettings RangeSliderSettings) templ.Component
func Thumb ¶
func Thumb(componentSettings RangeSliderSettings, thumbSettings RangeSliderThumbSettings, isUpper bool) templ.Component
Types ¶
type ButtonSettings ¶
type ButtonSettings struct {
// OptionalFields
Label string
LabelOneWayStatePath string
AriaExpandedOneWayStatePath string
AriaLabel string
AriaLabelOneWayStatePath string
BackgroundColor string
BackgroundColorActive string
BackgroundColorHover string
CountdownSeconds uint
CountdownTriggerOneWayStatePath string
FailedIcon string
FailedLabel string
FailedLabelOneWayStatePath string
FormId string
IconLeft string
IconLeftOneWayStatePath string
IconRight string
IconRightOneWayStatePath string
IconSizeClass string
IconTop string
IconTopOneWayStatePath string
Id string
IsDisabled bool
IsDisabledOneWayStatePath string
IsPendingOneWayStatePath string
IsVisibleOneWayStatePath string
IsFullWidth bool
IsSubmit bool
MaxHeightClass string
MaxWidthClass string
MinHeightClass string
MinWidthClass string
OnClickFunc string
OnClickPreventDefault bool
PaddingSize string
PendingIcon string
PendingIconAnimation string
PendingLabel string
PendingLabelOneWayStatePath string
Shape string
ShouldTrackAction bool
Size string
SucceededIcon string
SucceededLabel string
SucceededLabelOneWayStatePath string
TextCase string
TextColor string
TextColorHover string
TextSizeClass string
TooltipContent string
TooltipContentHtml templ.Component
TooltipContentOneWayStatePath string
TooltipBackgroundColor string
TooltipPosition string
TooltipRingColor string
TooltipRingThickness string
TooltipTextColor string
TooltipMinWidthClass string
TooltipMaxWidthClass string
TooltipMinHeightClass string
TooltipMaxHeightClass string
RingColor string
RingColorHover string
RingThickness string
}
type RangeSliderSettings ¶
type RangeSliderSettings struct {
// OptionalFields
ShouldNormalizeInitialState bool
Size string
Thumb RangeSliderThumbSettings
ThumbDualValueModeEnabled bool
ThumbUpper RangeSliderThumbSettings
ThumbUpperValue string
ThumbUpperValueTwoWayStatePath string
ThumbValue string
ThumbValueTwoWayStatePath string
Track RangeSliderTrackSettings
TrackEndValue string
TrackEndValueOneWayStatePath string
TrackStartValue string
TrackStartValueOneWayStatePath string
TrackSteps string
}
type RangeSliderThumbSettings ¶ added in v0.2.9
type RangeSliderThumbSettings struct {
// OptionalFields
AriaLabel string
AriaLabelOneWayStatePath string
BackgroundColor string
Label string
LabelIcon string
LabelOneWayStatePath string
Shape string
TextColor string
ValueBubbleBackgroundColor string
ValueBubbleDisplayMode string
ValueBubbleEnabled bool
ValueBubblePosition string
ValueBubbleRingColor string
ValueBubbleRingThickness string
ValueBubbleShape string
ValueBubbleSize string
ValueBubbleTextColor string
}
type RangeSliderTrackSettings ¶ added in v0.2.9
type RangeSliderTrackSettings struct {
// OptionalFields
BackgroundColor string
BackgroundColorFrom string
BackgroundColorTo string
BackgroundColorVia string
EndValueLabelEnabled bool
EndValueLabelIcon string
EndValueLabelPosition string
EndValueLabelTextColor string
FillColor string
FillColorFrom string
FillColorTo string
FillColorVia string
StartValueLabelEnabled bool
StartValueLabelIcon string
StartValueLabelPosition string
StartValueLabelTextColor string
TickStep string
TicksEnabled bool
TooltipBackgroundColor string
TooltipEnabled bool
TooltipPosition string
TooltipRingColor string
TooltipRingThickness string
TooltipTextColor string
}
Click to show internal directories.
Click to hide internal directories.