components

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

templ: version: v0.3.856

Index

Constants

This section is empty.

Variables

View Source
var (
	DateLocaleDefault = DateLocale{
		MonthNames: []string{"January", "February", "March", "April", "May", "June",
			"July", "August", "September", "October", "November", "December"},
		DayNames: []string{"Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"},
	}

	DateLocaleSpanish = DateLocale{
		MonthNames: []string{"Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio",
			"Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"},
		DayNames: []string{"Lu", "Ma", "Mi", "Ju", "Vi", "Sa", "Do"},
	}

	DateLocaleGerman = DateLocale{
		MonthNames: []string{"Januar", "Februar", "März", "April", "Mai", "Juni",
			"Juli", "August", "September", "Oktober", "November", "Dezember"},
		DayNames: []string{"Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"},
	}

	DateLocaleFrench = DateLocale{
		MonthNames: []string{"Janvier", "Février", "Mars", "Avril", "Mai", "Juin",
			"Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"},
		DayNames: []string{"Lu", "Ma", "Me", "Je", "Ve", "Sa", "Di"},
	}

	DateLocaleItalian = DateLocale{
		MonthNames: []string{"Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno",
			"Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"},
		DayNames: []string{"Lu", "Ma", "Me", "Gi", "Ve", "Sa", "Do"},
	}

	DateLocaleJapanese = DateLocale{
		MonthNames: []string{"1月", "2月", "3月", "4月", "5月", "6月",
			"7月", "8月", "9月", "10月", "11月", "12月"},
		DayNames: []string{"日", "月", "火", "水", "木", "金", "土"},
	}
)
View Source
var (
	DatePickerISO = DatePickerConfig{
		Format: DateFormatISO,
		Locale: DateLocaleDefault,
	}

	DatePickerEU = DatePickerConfig{
		Format: DateFormatEU,
		Locale: DateLocaleDefault,
	}

	DatePickerUK = DatePickerConfig{
		Format: DateFormatUK,
		Locale: DateLocaleDefault,
	}

	DatePickerUS = DatePickerConfig{
		Format: DateFormatUS,
		Locale: DateLocaleDefault,
	}

	DatePickerLONG = DatePickerConfig{
		Format: DateFormatLONG,
		Locale: DateLocaleDefault,
	}
)
View Source
var TemplFiles embed.FS

Functions

func Accordion

func Accordion(props ...AccordionProps) templ.Component

func AccordionContent added in v0.40.0

func AccordionContent(props ...AccordionContentProps) templ.Component

func AccordionItem

func AccordionItem(props ...AccordionItemProps) templ.Component

func AccordionTrigger added in v0.40.0

func AccordionTrigger(props ...AccordionTriggerProps) templ.Component

func Alert

func Alert(props ...AlertProps) templ.Component

func AlertDescription

func AlertDescription(props ...AlertDescriptionProps) templ.Component

func AlertTitle

func AlertTitle(props ...AlertTitleProps) templ.Component

func AspectRatio added in v0.33.0

func AspectRatio(props ...AspectRatioProps) templ.Component

func Avatar

func Avatar(props ...AvatarProps) templ.Component

func AvatarFallback added in v0.40.0

func AvatarFallback(props ...AvatarFallbackProps) templ.Component

func AvatarGroup added in v0.40.0

func AvatarGroup(props ...AvatarGroupProps) templ.Component

func AvatarGroupOverflow added in v0.40.0

func AvatarGroupOverflow(count int, props ...AvatarProps) templ.Component

func AvatarImage added in v0.40.0

func AvatarImage(props ...AvatarImageProps) templ.Component

func AvatarInitials added in v0.40.0

func AvatarInitials(name string) string

func Badge

func Badge(props ...BadgeProps) templ.Component
func Breadcrumb(props ...BreadcrumbProps) templ.Component
func BreadcrumbItem(props ...BreadcrumbItemProps) templ.Component
func BreadcrumbLink(props ...BreadcrumbLinkProps) templ.Component
func BreadcrumbList(props ...BreadcrumbListProps) templ.Component
func BreadcrumbPage(props ...BreadcrumbItemProps) templ.Component
func BreadcrumbSeparator(props ...BreadcrumbSeparatorProps) templ.Component

func Button

func Button(props ...ButtonProps) templ.Component

func Card

func Card(props ...CardProps) templ.Component

func CardContent

func CardContent(props ...CardContentProps) templ.Component

func CardDescription

func CardDescription(props ...CardDescriptionProps) templ.Component

func CardFooter

func CardFooter(props ...CardFooterProps) templ.Component

func CardHeader

func CardHeader(props ...CardHeaderProps) templ.Component

func CardHorizontal added in v0.40.0

func CardHorizontal(props ...CardHorizontalProps) templ.Component

func CardMedia added in v0.40.0

func CardMedia(props ...CardMediaProps) templ.Component

func CardTitle

func CardTitle(props ...CardTitleProps) templ.Component
func Carousel(props ...CarouselProps) templ.Component

func CarouselContent added in v0.40.0

func CarouselContent(props ...CarouselContentProps) templ.Component

func CarouselIndicators added in v0.40.0

func CarouselIndicators(props ...CarouselIndicatorsProps) templ.Component

func CarouselItem added in v0.40.0

func CarouselItem(props ...CarouselItemProps) templ.Component

func CarouselNext added in v0.40.0

func CarouselNext(props ...CarouselNextProps) templ.Component

func CarouselPrevious added in v0.40.0

func CarouselPrevious(props ...CarouselPreviousProps) templ.Component

func CarouselScript added in v0.35.0

func CarouselScript() templ.Component

func Chart added in v0.35.0

func Chart(props ...ChartProps) templ.Component

func ChartScripts added in v0.35.0

func ChartScripts() templ.Component

func Checkbox

func Checkbox(props ...CheckboxProps) templ.Component

func CheckboxCard added in v0.34.0

func CheckboxCard(props ...CheckboxCardProps) templ.Component

func CheckboxCardDescription added in v0.40.0

func CheckboxCardDescription(props ...CheckboxCardDescriptionProps) templ.Component

func CheckboxCardFooter added in v0.40.0

func CheckboxCardFooter(props ...CheckboxCardFooterProps) templ.Component

func CheckboxCardHeader added in v0.40.0

func CheckboxCardHeader(props ...CheckboxCardHeaderProps) templ.Component

func Code

func Code(props ...CodeProps) templ.Component

func CodeScript

func CodeScript() templ.Component

func CreatePagination added in v0.40.0

func CreatePagination(currentPage, totalPages, maxVisible int) struct {
	CurrentPage int
	TotalPages  int
	Pages       []int
	HasPrevious bool
	HasNext     bool
}

func DatePicker added in v0.37.0

func DatePicker(props ...DatePickerProps) templ.Component

func DatePickerScript added in v0.37.0

func DatePickerScript() templ.Component

func Drawer added in v0.40.0

func Drawer(props ...DrawerProps) templ.Component

func DrawerClose added in v0.40.0

func DrawerClose(props ...DrawerCloseProps) templ.Component

func DrawerContent added in v0.40.0

func DrawerContent(props ...DrawerContentProps) templ.Component

func DrawerDescription added in v0.40.0

func DrawerDescription(props ...DrawerDescriptionProps) templ.Component

func DrawerFooter added in v0.40.0

func DrawerFooter(props ...DrawerFooterProps) templ.Component

func DrawerHeader added in v0.40.0

func DrawerHeader(props ...DrawerHeaderProps) templ.Component

func DrawerScript added in v0.40.0

func DrawerScript() templ.Component

func DrawerTitle added in v0.40.0

func DrawerTitle(props ...DrawerTitleProps) templ.Component

func DrawerTrigger added in v0.40.0

func DrawerTrigger(props ...DrawerTriggerProps) templ.Component
func DropdownMenu(props ...DropdownMenuProps) templ.Component
func DropdownMenuContent(props ...DropdownMenuContentProps) templ.Component
func DropdownMenuGroup(props ...DropdownMenuGroupProps) templ.Component
func DropdownMenuItem(props ...DropdownMenuItemProps) templ.Component
func DropdownMenuLabel(props ...DropdownMenuLabelProps) templ.Component
func DropdownMenuPortal(props ...DropdownMenuPortalProps) templ.Component
func DropdownMenuScript() templ.Component
func DropdownMenuSeparator(props ...DropdownMenuSeparatorProps) templ.Component
func DropdownMenuShortcut(props ...DropdownMenuShortcutProps) templ.Component
func DropdownMenuSub(props ...DropdownMenuSubProps) templ.Component
func DropdownMenuSubContent(props ...DropdownMenuSubContentProps) templ.Component
func DropdownMenuSubTrigger(props ...DropdownMenuSubTriggerProps) templ.Component
func DropdownMenuTrigger(props ...DropdownMenuTriggerProps) templ.Component

func FormDescription

func FormDescription(props ...FormDescriptionProps) templ.Component

func FormItem

func FormItem(props ...FormItemProps) templ.Component

func FormItemFlex

func FormItemFlex(props ...FormItemProps) templ.Component

func FormLabel

func FormLabel(props ...FormLabelProps) templ.Component

func FormMessage

func FormMessage(props ...FormMessageProps) templ.Component

func Input

func Input(props ...InputProps) templ.Component

func InputOTP added in v0.37.0

func InputOTP(props ...InputOTPProps) templ.Component

func InputOTPGroup added in v0.40.0

func InputOTPGroup(props ...InputOTPGroupProps) templ.Component

func InputOTPScript added in v0.37.0

func InputOTPScript() templ.Component

func InputOTPSeparator added in v0.40.0

func InputOTPSeparator(props ...InputOTPSeparatorProps) templ.Component

func InputOTPSlot added in v0.40.0

func InputOTPSlot(props ...InputOTPSlotProps) templ.Component

func Label

func Label(props ...LabelProps) templ.Component

func LabelScript

func LabelScript() templ.Component
func Modal(props ...ModalProps) templ.Component

func ModalBody

func ModalBody(props ...ModalBodyProps) templ.Component

func ModalClose

func ModalClose(props ...ModalCloseProps) templ.Component

func ModalFooter

func ModalFooter(props ...ModalFooterProps) templ.Component

func ModalHeader

func ModalHeader(props ...ModalHeaderProps) templ.Component

func ModalScript

func ModalScript() templ.Component

func ModalTrigger

func ModalTrigger(props ...ModalTriggerProps) templ.Component

func Pagination added in v0.36.0

func Pagination(props ...PaginationProps) templ.Component

func PaginationContent added in v0.40.0

func PaginationContent(props ...PaginationContentProps) templ.Component

func PaginationEllipsis added in v0.40.0

func PaginationEllipsis() templ.Component

func PaginationItem added in v0.40.0

func PaginationItem(props ...PaginationItemProps) templ.Component
func PaginationLink(props ...PaginationLinkProps) templ.Component

func PaginationNext added in v0.40.0

func PaginationNext(props ...PaginationNextProps) templ.Component

func PaginationPrevious added in v0.40.0

func PaginationPrevious(props ...PaginationPreviousProps) templ.Component

func Popover added in v0.43.0

func Popover(props ...PopoverProps) templ.Component

func PopoverContent added in v0.43.0

func PopoverContent(props ...PopoverContentProps) templ.Component

func PopoverScript added in v0.43.0

func PopoverScript() templ.Component

func PopoverTrigger added in v0.43.0

func PopoverTrigger(props ...PopoverTriggerProps) templ.Component

func Progress added in v0.38.0

func Progress(props ...ProgressProps) templ.Component

func Radio

func Radio(props ...RadioProps) templ.Component

func RadioCard added in v0.34.0

func RadioCard(props ...RadioCardProps) templ.Component

func RadioCardDescription added in v0.40.0

func RadioCardDescription(props ...RadioCardDescriptionProps) templ.Component

func RadioCardFooter added in v0.40.0

func RadioCardFooter(props ...RadioCardFooterProps) templ.Component

func RadioCardHeader added in v0.40.0

func RadioCardHeader(props ...RadioCardHeaderProps) templ.Component

func Rating added in v0.38.0

func Rating(props ...RatingProps) templ.Component

func RatingGroup added in v0.40.0

func RatingGroup(props ...RatingGroupProps) templ.Component

func RatingItem added in v0.40.0

func RatingItem(props ...RatingItemProps) templ.Component

func RatingScript added in v0.38.0

func RatingScript() templ.Component

func Select

func Select(props ...SelectProps) templ.Component

func SelectContent added in v0.40.0

func SelectContent(props ...SelectContentProps) templ.Component

func SelectGroup added in v0.40.0

func SelectGroup(props ...SelectGroupProps) templ.Component

func SelectItem added in v0.40.0

func SelectItem(props ...SelectItemProps) templ.Component

func SelectLabel added in v0.40.0

func SelectLabel(props ...SelectLabelProps) templ.Component

func SelectScript added in v0.40.0

func SelectScript() templ.Component

func SelectTrigger added in v0.40.0

func SelectTrigger(props ...SelectTriggerProps) templ.Component

func SelectValue added in v0.40.0

func SelectValue(props ...SelectValueProps) templ.Component

func Separator added in v0.38.0

func Separator(props ...SeparatorProps) templ.Component

func Skeleton added in v0.38.0

func Skeleton(props ...SkeletonProps) templ.Component

func Slider

func Slider(props ...SliderProps) templ.Component

func SliderInput added in v0.40.0

func SliderInput(props ...SliderProps) templ.Component

func SliderScript

func SliderScript() templ.Component

func SliderValue added in v0.40.0

func SliderValue(props ...SliderValueProps) templ.Component

func Spinner added in v0.38.0

func Spinner(props ...SpinnerProps) templ.Component

func TabContent added in v0.40.0

func TabContent(props ...TabContentProps) templ.Component

func TabTrigger added in v0.40.0

func TabTrigger(props ...TabTriggerProps) templ.Component

func Table added in v0.40.0

func Table(props ...TableProps) templ.Component

func TableBody added in v0.40.0

func TableBody(props ...TableBodyProps) templ.Component

func TableCaption added in v0.40.0

func TableCaption(props ...TableCaptionProps) templ.Component

func TableCell added in v0.40.0

func TableCell(props ...TableCellProps) templ.Component

func TableFooter added in v0.40.0

func TableFooter(props ...TableFooterProps) templ.Component

func TableHead added in v0.40.0

func TableHead(props ...TableHeadProps) templ.Component

func TableHeader added in v0.40.0

func TableHeader(props ...TableHeaderProps) templ.Component

func TableRow added in v0.40.0

func TableRow(props ...TableRowProps) templ.Component

func Tabs

func Tabs(props ...TabsProps) templ.Component

func TabsList added in v0.40.0

func TabsList(props ...TabsListProps) templ.Component

func TabsScript

func TabsScript() templ.Component

func Textarea

func Textarea(props ...TextareaProps) templ.Component

func TextareaScript

func TextareaScript() templ.Component

func TimePicker added in v0.37.0

func TimePicker(props ...TimePickerProps) templ.Component

func TimePickerScript added in v0.37.0

func TimePickerScript() templ.Component

func Toast

func Toast(props ...ToastProps) templ.Component

func ToastScript

func ToastScript() templ.Component

func Toggle

func Toggle(props ...ToggleProps) templ.Component

func Tooltip

func Tooltip(props ...TooltipProps) templ.Component

func TooltipContent added in v0.40.0

func TooltipContent(props ...TooltipContentProps) templ.Component

func TooltipTrigger added in v0.40.0

func TooltipTrigger(props ...TooltipTriggerProps) templ.Component

Types

type AccordionContentProps added in v0.40.0

type AccordionContentProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type AccordionItemProps added in v0.40.0

type AccordionItemProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type AccordionProps

type AccordionProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type AccordionTriggerProps added in v0.40.0

type AccordionTriggerProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type AlertDescriptionProps added in v0.40.0

type AlertDescriptionProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type AlertProps

type AlertProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Variant    AlertVariant
}

type AlertTitleProps added in v0.40.0

type AlertTitleProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type AlertVariant

type AlertVariant string
const (
	AlertVariantDefault     AlertVariant = "default"
	AlertVariantDestructive AlertVariant = "destructive"
)

type AspectRatioProps added in v0.33.0

type AspectRatioProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Ratio      AspectRatioVariant
}

type AspectRatioVariant added in v0.40.0

type AspectRatioVariant string
const (
	AspectRatioAuto     AspectRatioVariant = "auto"
	AspectRatioSquare   AspectRatioVariant = "square"
	AspectRatioVideo    AspectRatioVariant = "video"
	AspectRatioPortrait AspectRatioVariant = "portrait"
	AspectRatioWide     AspectRatioVariant = "wide"
)

type AvatarFallbackProps added in v0.40.0

type AvatarFallbackProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type AvatarGroupProps added in v0.40.0

type AvatarGroupProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Spacing    AvatarGroupSpacing
}

type AvatarGroupSpacing added in v0.40.0

type AvatarGroupSpacing string
const (
	AvatarGroupSpacingSmall  AvatarGroupSpacing = "small"
	AvatarGroupSpacingMedium AvatarGroupSpacing = "medium"
	AvatarGroupSpacingLarge  AvatarGroupSpacing = "large"
)

type AvatarImageProps added in v0.40.0

type AvatarImageProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Alt        string
	Src        string
}

type AvatarProps

type AvatarProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Size       AvatarSize
	InGroup    bool
}

type AvatarSize

type AvatarSize string
const (
	AvatarSizeSmall  AvatarSize = "small"
	AvatarSizeMedium AvatarSize = "medium"
	AvatarSizeLarge  AvatarSize = "large"
)

type BadgeProps

type BadgeProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Variant    BadgeVariant
}

type BadgeVariant

type BadgeVariant string
const (
	BadgeVariantDefault     BadgeVariant = "default"
	BadgeVariantSecondary   BadgeVariant = "secondary"
	BadgeVariantDestructive BadgeVariant = "destructive"
	BadgeVariantOutline     BadgeVariant = "outline"
)
type BreadcrumbItemProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Current    bool
}
type BreadcrumbLinkProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Href       string
}
type BreadcrumbListProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}
type BreadcrumbProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}
type BreadcrumbSeparatorProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	UseCustom  bool
}

type ButtonProps

type ButtonProps struct {
	ID           string
	Class        string
	Attributes   templ.Attributes
	Variant      ButtonVariant
	Size         ButtonSize
	FullWidth    bool
	Href         string
	Target       string
	Disabled     bool
	Type         string
	HxGet        string
	HxPost       string
	HxPut        string
	HxDelete     string
	HxTrigger    string
	HxTarget     string
	HxSwap       string
	HxReplaceUrl string
}

type ButtonSize

type ButtonSize string
const (
	ButtonSizeIcon ButtonSize = "icon"
)

type ButtonVariant

type ButtonVariant string
const (
	ButtonVariantDefault     ButtonVariant = "default"
	ButtonVariantDestructive ButtonVariant = "destructive"
	ButtonVariantOutline     ButtonVariant = "outline"
	ButtonVariantSecondary   ButtonVariant = "secondary"
	ButtonVariantGhost       ButtonVariant = "ghost"
	ButtonVariantLink        ButtonVariant = "link"
)

type CardContentProps added in v0.40.0

type CardContentProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type CardDescriptionProps added in v0.40.0

type CardDescriptionProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type CardFooterProps added in v0.40.0

type CardFooterProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type CardHeaderProps added in v0.40.0

type CardHeaderProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type CardHorizontalProps added in v0.40.0

type CardHorizontalProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type CardMediaPosition added in v0.40.0

type CardMediaPosition string
const (
	CardMediaTop    CardMediaPosition = "top"
	CardMediaBottom CardMediaPosition = "bottom"
	CardMediaLeft   CardMediaPosition = "left"
	CardMediaRight  CardMediaPosition = "right"
)

type CardMediaProps added in v0.40.0

type CardMediaProps struct {
	ID          string
	Class       string
	Attributes  templ.Attributes
	Src         string
	Alt         string
	Position    CardMediaPosition
	Width       CardMediaWidth
	AspectRatio AspectRatioVariant
}

type CardMediaWidth added in v0.40.0

type CardMediaWidth string
const (
	CardMediaWidthAuto          CardMediaWidth = "auto"
	CardMediaWidthFull          CardMediaWidth = "full"
	CardMediaWidthHalf          CardMediaWidth = "half"
	CardMediaWidthThird         CardMediaWidth = "third"
	CardMediaWidthQuarter       CardMediaWidth = "quarter"
	CardMediaWidthTwoThirds     CardMediaWidth = "two-thirds"
	CardMediaWidthThreeQuarters CardMediaWidth = "three-quarters"
)

type CardProps

type CardProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type CardTitleProps added in v0.40.0

type CardTitleProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type CarouselContentProps added in v0.40.0

type CarouselContentProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type CarouselIndicatorsProps added in v0.40.0

type CarouselIndicatorsProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Count      int
}

type CarouselItemProps added in v0.40.0

type CarouselItemProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type CarouselNextProps added in v0.40.0

type CarouselNextProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type CarouselPreviousProps added in v0.40.0

type CarouselPreviousProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type CarouselProps added in v0.35.0

type CarouselProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Autoplay   bool
	Interval   int
	Loop       bool
}

type ChartConfig added in v0.35.0

type ChartConfig struct {
	Type        ChartVariant `json:"type"`
	Data        ChartData    `json:"data"`
	Options     ChartOptions `json:"options,omitempty"`
	ShowLegend  bool         `json:"showLegend,omitempty"`
	ShowXAxis   bool         `json:"showXAxis"`
	ShowYAxis   bool         `json:"showYAxis"`
	ShowXLabels bool         `json:"showXLabels"`
	ShowYLabels bool         `json:"showYLabels"`
	ShowXGrid   bool         `json:"showXGrid"`
	ShowYGrid   bool         `json:"showYGrid"`
	Horizontal  bool         `json:"horizontal"`
	Stacked     bool         `json:"stacked"`
}

type ChartData added in v0.35.0

type ChartData struct {
	Labels   []string       `json:"labels"`
	Datasets []ChartDataset `json:"datasets"`
}

type ChartDataset added in v0.35.0

type ChartDataset struct {
	Label           string    `json:"label"`
	Data            []float64 `json:"data"`
	BorderWidth     int       `json:"borderWidth,omitempty"`
	BorderColor     string    `json:"borderColor,omitempty"`
	BackgroundColor string    `json:"backgroundColor,omitempty"`
	Tension         float64   `json:"tension,omitempty"`
	Fill            bool      `json:"fill,omitempty"`
	Stepped         bool      `json:"stepped,omitempty"`
}

type ChartOptions added in v0.35.0

type ChartOptions struct {
	Responsive bool `json:"responsive,omitempty"`
	Legend     bool `json:"legend,omitempty"`
}

type ChartProps added in v0.35.0

type ChartProps struct {
	ID          string
	Variant     ChartVariant
	Data        ChartData
	Options     ChartOptions
	ShowLegend  bool
	ShowXAxis   bool
	ShowYAxis   bool
	ShowXLabels bool
	ShowYLabels bool
	ShowXGrid   bool
	ShowYGrid   bool
	Horizontal  bool
	Stacked     bool
	Class       string
	Attributes  templ.Attributes
}

Erweiterung des ChartProps um ID und Attributes

type ChartVariant added in v0.40.0

type ChartVariant string
const (
	ChartVariantBar      ChartVariant = "bar"
	ChartVariantLine     ChartVariant = "line"
	ChartVariantPie      ChartVariant = "pie"
	ChartVariantDoughnut ChartVariant = "doughnut"
	ChartVariantRadar    ChartVariant = "radar"
)

type CheckboxCardDescriptionProps added in v0.40.0

type CheckboxCardDescriptionProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type CheckboxCardFooterProps added in v0.40.0

type CheckboxCardFooterProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type CheckboxCardHeaderProps added in v0.40.0

type CheckboxCardHeaderProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type CheckboxCardProps added in v0.34.0

type CheckboxCardProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Checked    bool
	Disabled   bool
	Required   bool
	Name       string
	Value      string
}

type CheckboxProps

type CheckboxProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Name       string
	Value      string
	Disabled   bool
	Required   bool
	Checked    bool
	Icon       templ.Component
}

type CodeProps

type CodeProps struct {
	ID             string
	Class          string
	Attrs          templ.Attributes
	Language       string
	ShowCopyButton bool
	Size           CodeSize
	CodeClass      string
}

type CodeSize

type CodeSize string
const (
	CodeSizeDefault CodeSize = ""
	CodeSizeSm      CodeSize = "sm"
	CodeSizeLg      CodeSize = "lg"
	CodeSizeFull    CodeSize = "full"
)

type DateFormat

type DateFormat string
const (
	DateFormatISO  DateFormat = "iso"
	DateFormatEU   DateFormat = "eu"
	DateFormatUK   DateFormat = "uk"
	DateFormatUS   DateFormat = "us"
	DateFormatLONG DateFormat = "long"
)

type DateLocale

type DateLocale struct {
	MonthNames []string
	DayNames   []string
}

type DatePickerConfig added in v0.37.0

type DatePickerConfig struct {
	Format DateFormat
	Locale DateLocale
}

func NewDatePickerConfig added in v0.37.0

func NewDatePickerConfig(format DateFormat, locale DateLocale) DatePickerConfig

type DatePickerProps added in v0.37.0

type DatePickerProps struct {
	ID          string
	Class       string
	Attributes  templ.Attributes
	Value       time.Time
	Config      DatePickerConfig
	Placeholder string
	Disabled    bool
	Required    bool
	HasError    bool
	Name        string
}

type DrawerCloseProps added in v0.40.0

type DrawerCloseProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type DrawerContentProps added in v0.40.0

type DrawerContentProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Side       DrawerPosition
}

type DrawerDescriptionProps added in v0.40.0

type DrawerDescriptionProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type DrawerFooterProps added in v0.40.0

type DrawerFooterProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type DrawerHeaderProps added in v0.40.0

type DrawerHeaderProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type DrawerPosition added in v0.40.0

type DrawerPosition string
const (
	DrawerPositionTop    DrawerPosition = "top"
	DrawerPositionRight  DrawerPosition = "right"
	DrawerPositionBottom DrawerPosition = "bottom"
	DrawerPositionLeft   DrawerPosition = "left"
)

type DrawerProps added in v0.40.0

type DrawerProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Side       DrawerPosition
}

type DrawerTitleProps added in v0.40.0

type DrawerTitleProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type DrawerTriggerProps added in v0.40.0

type DrawerTriggerProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}
type DropdownMenuContentProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Width      string
	MaxHeight  string
	Align      string
	Side       string
}
type DropdownMenuGroupProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}
type DropdownMenuItemProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Disabled   bool
	Href       string
	Target     string
}
type DropdownMenuLabelProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}
type DropdownMenuPortalProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}
type DropdownMenuProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}
type DropdownMenuSeparatorProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}
type DropdownMenuShortcutProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}
type DropdownMenuSubContentProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}
type DropdownMenuSubProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}
type DropdownMenuSubTriggerProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}
type DropdownMenuTriggerProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type FormDescriptionProps

type FormDescriptionProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type FormItemProps

type FormItemProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type FormLabelProps

type FormLabelProps struct {
	ID            string
	Class         string
	Attributes    templ.Attributes
	For           string
	DisabledClass string
}

type FormMessageProps

type FormMessageProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Variant    FormMessageVariant
}

type FormMessageVariant added in v0.40.0

type FormMessageVariant string
const (
	FormMessageVariantError FormMessageVariant = "error"
	FormMessageVariantInfo  FormMessageVariant = "info"
)

type InputOTPGroupProps added in v0.40.0

type InputOTPGroupProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type InputOTPProps added in v0.37.0

type InputOTPProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Value      string
	Required   bool
	Name       string
	HasError   bool
}

type InputOTPSeparatorProps added in v0.40.0

type InputOTPSeparatorProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type InputOTPSlotProps added in v0.40.0

type InputOTPSlotProps struct {
	ID          string
	Class       string
	Attributes  templ.Attributes
	Index       int
	Type        string
	Placeholder string
	Disabled    bool
}

type InputProps

type InputProps struct {
	ID          string
	Class       string
	Attributes  templ.Attributes
	Name        string
	Type        InputType
	Placeholder string
	Value       string
	Disabled    bool
	Readonly    bool
	Required    bool
	FileAccept  string
	HasError    bool
}

type InputType

type InputType string
const (
	InputTypeText     InputType = "text"
	InputTypePassword InputType = "password"
	InputTypeEmail    InputType = "email"
	InputTypeNumber   InputType = "number"
	InputTypeTel      InputType = "tel"
	InputTypeURL      InputType = "url"
	InputTypeSearch   InputType = "search"
	InputTypeDate     InputType = "date"
	InputTypeTime     InputType = "time"
	InputTypeFile     InputType = "file"
)

type LabelProps

type LabelProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	For        string
	Error      string
}

type ModalBodyProps added in v0.40.0

type ModalBodyProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type ModalCloseProps added in v0.40.0

type ModalCloseProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	ModalID    string
}

type ModalFooterProps added in v0.40.0

type ModalFooterProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type ModalHeaderProps added in v0.40.0

type ModalHeaderProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type ModalProps

type ModalProps struct {
	ID               string
	Class            string
	Attributes       templ.Attributes
	DisableClickAway bool
	DisableESC       bool
}

type ModalTriggerProps added in v0.40.0

type ModalTriggerProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Disabled   bool
	ModalID    string
}

type PaginationContentProps added in v0.41.0

type PaginationContentProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type PaginationItemProps added in v0.41.0

type PaginationItemProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type PaginationLinkProps added in v0.40.0

type PaginationLinkProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Href       string
	IsActive   bool
	Disabled   bool
	HxGet      string
	HxTarget   string
	HxSwap     string
}

type PaginationNextProps added in v0.40.0

type PaginationNextProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Href       string
	Disabled   bool
	HxGet      string
	HxTarget   string
	HxSwap     string
}

type PaginationPreviousProps added in v0.40.0

type PaginationPreviousProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Href       string
	Disabled   bool
	HxGet      string
	HxTarget   string
	HxSwap     string
}

type PaginationProps added in v0.36.0

type PaginationProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type PopoverContentProps added in v0.43.0

type PopoverContentProps struct {
	ID               string
	Class            string
	Attributes       templ.Attributes
	Position         PopoverPosition
	DisableClickAway bool
	DisableESC       bool
	ShowArrow        bool
	HoverDelay       int
	HoverOutDelay    int
}

type PopoverPosition added in v0.43.0

type PopoverPosition string
const (
	PopoverTop         PopoverPosition = "top"
	PopoverTopStart    PopoverPosition = "top-start"
	PopoverTopEnd      PopoverPosition = "top-end"
	PopoverRight       PopoverPosition = "right"
	PopoverRightStart  PopoverPosition = "right-start"
	PopoverRightEnd    PopoverPosition = "right-end"
	PopoverBottom      PopoverPosition = "bottom"
	PopoverBottomStart PopoverPosition = "bottom-start"
	PopoverBottomEnd   PopoverPosition = "bottom-end"
	PopoverLeft        PopoverPosition = "left"
	PopoverLeftStart   PopoverPosition = "left-start"
	PopoverLeftEnd     PopoverPosition = "left-end"
)

type PopoverProps added in v0.43.0

type PopoverProps struct {
	Class string
}

type PopoverTriggerProps added in v0.43.0

type PopoverTriggerProps struct {
	ID          string
	For         string
	TriggerType PopoverTriggerType
}

type PopoverTriggerType added in v0.43.0

type PopoverTriggerType string
const (
	PopoverTriggerTypeHover PopoverTriggerType = "hover"
	PopoverTriggerTypeClick PopoverTriggerType = "click"
)

type ProgressProps added in v0.38.0

type ProgressProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Max        int
	Value      int
	Label      string
	ShowValue  bool
	Size       ProgressSize
	Variant    ProgressVariant
	BarClass   string
	HxGet      string
	HxTrigger  string
	HxTarget   string
	HxSwap     string
}

type ProgressSize added in v0.38.0

type ProgressSize string
const (
	ProgressSizeDefault ProgressSize = ""
	ProgressSizeSm      ProgressSize = "sm"
	ProgressSizeLg      ProgressSize = "lg"
)

type ProgressVariant added in v0.38.0

type ProgressVariant string
const (
	ProgressVariantDefault ProgressVariant = "default"
	ProgressVariantSuccess ProgressVariant = "success"
	ProgressVariantDanger  ProgressVariant = "danger"
	ProgressVariantWarning ProgressVariant = "warning"
)

type RadioCardDescriptionProps added in v0.40.0

type RadioCardDescriptionProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type RadioCardFooterProps added in v0.40.0

type RadioCardFooterProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type RadioCardHeaderProps added in v0.40.0

type RadioCardHeaderProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type RadioCardProps added in v0.34.0

type RadioCardProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Name       string
	Value      string
	Checked    bool
	Disabled   bool
	Required   bool
}

type RadioProps

type RadioProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Name       string
	Value      string
	Disabled   bool
	Required   bool
	Checked    bool
}

type RatingGroupProps added in v0.40.0

type RatingGroupProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type RatingItemProps added in v0.40.0

type RatingItemProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Value      int
	Style      RatingStyle
}

type RatingProps added in v0.38.0

type RatingProps struct {
	ID          string
	Class       string
	Attributes  templ.Attributes
	Value       float64
	ReadOnly    bool
	Precision   float64
	Name        string
	OnlyInteger bool
}

type RatingStyle added in v0.38.0

type RatingStyle string
const (
	RatingStyleStar  RatingStyle = "star"
	RatingStyleHeart RatingStyle = "heart"
	RatingStyleEmoji RatingStyle = "emoji"
)

type SelectContentProps added in v0.40.0

type SelectContentProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type SelectGroupProps added in v0.40.0

type SelectGroupProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type SelectItemProps added in v0.40.0

type SelectItemProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Value      string
	Selected   bool
	Disabled   bool
}

type SelectLabelProps added in v0.40.0

type SelectLabelProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type SelectOption

type SelectOption struct {
	Label string
	Value string
}

type SelectProps

type SelectProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type SelectTriggerProps added in v0.40.0

type SelectTriggerProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Name       string
	Required   bool
	Disabled   bool
	HasError   bool
}

type SelectValueProps added in v0.40.0

type SelectValueProps struct {
	ID          string
	Class       string
	Attributes  templ.Attributes
	Placeholder string
}

type SeparatorDecoration added in v0.38.0

type SeparatorDecoration string
const (
	SeparatorDecorationNone   SeparatorDecoration = "none"
	SeparatorDecorationDashed SeparatorDecoration = "dashed"
	SeparatorDecorationDotted SeparatorDecoration = "dotted"
)

type SeparatorOrientation added in v0.38.0

type SeparatorOrientation string
const (
	SeparatorOrientationHorizontal SeparatorOrientation = "horizontal"
	SeparatorOrientationVertical   SeparatorOrientation = "vertical"
)

type SeparatorProps added in v0.38.0

type SeparatorProps struct {
	ID          string
	Class       string
	Attributes  templ.Attributes
	Orientation SeparatorOrientation
	Decoration  SeparatorDecoration
	Label       string
}

type SkeletonProps added in v0.38.0

type SkeletonProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type SliderProps

type SliderProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Name       string
	Min        int
	Max        int
	Step       int
	Value      int
	Disabled   bool
}

type SliderValueProps added in v0.40.0

type SliderValueProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	For        string
}

type SpinnerProps added in v0.38.0

type SpinnerProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Size       SpinnerSize
	Color      string
}

type SpinnerSize added in v0.38.0

type SpinnerSize string
const (
	SpinnerSizeSm SpinnerSize = "sm"
	SpinnerSizeMd SpinnerSize = "md"
	SpinnerSizeLg SpinnerSize = "lg"
)

type TabContentProps added in v0.40.0

type TabContentProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Value      string
	IsActive   bool
	TabsID     string
}

type TabTriggerProps added in v0.40.0

type TabTriggerProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Value      string
	IsActive   bool
	TabsID     string
}

type TableBodyProps added in v0.40.0

type TableBodyProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type TableCaptionProps added in v0.40.0

type TableCaptionProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type TableCellProps added in v0.40.0

type TableCellProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type TableFooterProps added in v0.40.0

type TableFooterProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type TableHeadProps added in v0.40.0

type TableHeadProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type TableHeaderProps added in v0.40.0

type TableHeaderProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type TableProps added in v0.40.0

type TableProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type TableRowProps added in v0.40.0

type TableRowProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Selected   bool
}

type TabsListProps added in v0.40.0

type TabsListProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type TabsProps

type TabsProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type TextareaProps

type TextareaProps struct {
	ID          string
	Class       string
	Attributes  templ.Attributes
	Name        string
	Value       string
	Placeholder string
	Rows        int
	Disabled    bool
	Required    bool
	AutoResize  bool
}

type TimePickerProps added in v0.37.0

type TimePickerProps struct {
	ID          string
	Class       string
	Attributes  templ.Attributes
	Name        string
	Value       time.Time
	Use12Hours  bool
	AMLabel     string
	PMLabel     string
	Placeholder string
	Required    bool
	Disabled    bool
	HasError    bool
}

type ToastPosition added in v0.40.0

type ToastPosition string
const (
	ToastPositionTopRight     ToastPosition = "top-right"
	ToastPositionTopLeft      ToastPosition = "top-left"
	ToastPositionTopCenter    ToastPosition = "top-center"
	ToastPositionBottomRight  ToastPosition = "bottom-right"
	ToastPositionBottomLeft   ToastPosition = "bottom-left"
	ToastPositionBottomCenter ToastPosition = "bottom-center"
)

type ToastProps

type ToastProps struct {
	ID            string
	Class         string
	Attributes    templ.Attributes
	Title         string
	Description   string
	Variant       ToastVariant
	Position      ToastPosition
	Duration      int
	Dismissible   bool
	ShowIndicator bool
	Icon          bool
}

type ToastVariant added in v0.40.0

type ToastVariant string
const (
	ToastVariantDefault ToastVariant = "default"
	ToastVariantSuccess ToastVariant = "success"
	ToastVariantError   ToastVariant = "error"
	ToastVariantWarning ToastVariant = "warning"
	ToastVariantInfo    ToastVariant = "info"
)

type ToggleProps

type ToggleProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	Name       string
	Disabled   bool
	Checked    bool
}

type TooltipContentProps added in v0.40.0

type TooltipContentProps struct {
	ID            string
	Class         string
	Attributes    templ.Attributes
	ShowArrow     bool
	Position      TooltipPosition
	HoverDelay    int
	HoverOutDelay int
}

type TooltipPosition added in v0.40.0

type TooltipPosition string
const (
	TooltipPositionTop    TooltipPosition = "top"
	TooltipPositionRight  TooltipPosition = "right"
	TooltipPositionBottom TooltipPosition = "bottom"
	TooltipPositionLeft   TooltipPosition = "left"
)

type TooltipProps

type TooltipProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
}

type TooltipTriggerProps added in v0.40.0

type TooltipTriggerProps struct {
	ID         string
	Class      string
	Attributes templ.Attributes
	For        string
}

Jump to

Keyboard shortcuts

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