uiDisplay

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

templ: version: v0.3.865

templ: version: v0.3.865

templ: version: v0.3.865

Index

Constants

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"
)

Variables

This section is empty.

Functions

func Accordion

func Accordion(componentSettings AccordionSettings) templ.Component
func Sidebar(componentSettings SidebarSettings) templ.Component

func Tag

func Tag(componentSettings TagSettings) templ.Component

Types

type AccordionItemSettings

type AccordionItemSettings struct {
	Title   string
	Content templ.Component

	// OptionalFields
	Icon string
}

type AccordionSettings

type AccordionSettings struct {
	Items []AccordionItemSettings
}

type SidebarSettings added in v0.0.3

type SidebarSettings struct {
	MiddleContent templ.Component

	// OptionalFields
	HeaderContent                 templ.Component
	FooterContent                 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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL