model

package
v0.0.0-...-cc50c6f Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accordion

type Accordion struct {
	Label string
	Type  string
	Name  string
}

type Anchor

type Anchor struct {
	Href  string
	Label string
	Icon  templ.Component
	Attrs templ.Attributes
}

type Avatar

type Avatar struct {
	AvatarClass      string
	ContainerClass   string
	Source           string
	Placeholder      string
	PlaceholderClass string
}
type Banner struct {
	Title                 templ.Component
	Description           string
	CallToAction          Button
	SecondaryCallToAction Button
}

type Button

type Button struct {
	Label string
	Attrs templ.Attributes
}

type Card

type Card struct {
	Title   string
	Content string
	Source  string
	Alt     string
	Class   string
}

type Chat

type Chat struct {
	Messages []ChatMessage
}

type ChatMessage

type ChatMessage struct {
	AvatarURL string
	Sender    string
	Time      string
	Message   string
	Footer    string
	Location  string
	Class     string
}

type Checkbox

type Checkbox struct {
	ID      string
	Before  string
	After   string
	Name    string
	Checked bool
	Class   string
	Attrs   templ.Attributes
}

type Collapse

type Collapse struct {
	Class        string
	Title        string
	TitleClass   string
	ContentClass string
}

type Combobox

type Combobox struct {
	Label    string
	Name     string
	URL      string
	Options  []string
	Selected []string
}

type CompanyInfo

type CompanyInfo struct {
	Icon        templ.Component
	Name        string
	Description string
	Copyright   string
}

type ComponentCode

type ComponentCode struct {
	Name        string `json:"name"`
	Code        string `json:"code,omitempty"`
	Handler     string `json:"handler,omitempty"`
	Description string `json:"description,omitempty"`
	DaisyUIURL  string `json:"daisy_ui_url,omitempty"`

	Label string `json:"-"`
}

type ComponentCodeMap

type ComponentCodeMap map[string][]ComponentCode

type ComponentExampleCodeMap

type ComponentExampleCodeMap map[string][]ComponentCode
type Dropdown struct {
	Label     string
	Class     string
	ListClass string
	Items     []DropdownItem
}
type DropdownItem struct {
	Label string
	Attrs templ.Attributes
}

type Feature

type Feature struct {
	Icon        templ.Component
	Title       string
	Description string
	URL         string
}

type Image

type Image struct {
	Source string
	Alt    string
}

type Input

type Input struct {
	ID              string
	Type            string // defaults to "text"
	Label           string
	Name            string
	Value           string
	Placeholder     string
	Err             string
	Attrs           templ.Attributes
	Class           string
	Icon            templ.Component
	Disabled        bool
	DisabledMessage string
}

type PaginationItem

type PaginationItem struct {
	URL      string
	Page     int
	Low      int
	High     int
	MaxPages int
}

type Price

type Price struct {
	Title            string
	Description      string
	Price            string
	Per              string
	IncludedFeatures []string
	ExcludedFeatures []string
	CallToAction     Button
	Footer           templ.Component
}

type Radio

type Radio struct {
	Name   string
	Values map[string]string
	Class  string
}

type Range

type Range struct {
	ID    string
	Label string
	Name  string
	Value int
	Min   int
	Max   int
	Step  int
	Class string
}

type Rating

type Rating struct {
	Name  string
	Min   int
	Max   int
	Class string
	Value int
}

type Script

type Script struct {
	Source string
	Defer  bool
}

type Select

type Select struct {
	ID      string
	Label   string
	Name    string
	Options []SelectOption
	Attrs   templ.Attributes
	Class   string
}

type SelectOption

type SelectOption struct {
	Label    string
	Value    string
	Selected bool
	Disabled bool
}

type Stat

type Stat struct {
	Title       string
	Value       string
	Description string
}

type Status

type Status struct {
	Code         int
	Title        string
	Description  string
	ReturnButton Button
}

type Swap

type Swap struct {
	On    templ.Component
	Off   templ.Component
	Class string
}

type Tab

type Tab struct {
	Label   string
	Content templ.Component
}

type Tabs

type Tabs struct {
	Name         string
	Class        string
	Tabs         []Tab
	ContentClass string
}

type Testimonial

type Testimonial struct {
	Avatar  templ.Component
	Name    string
	Rating  int
	Content string
}

type Textarea

type Textarea struct {
	ID          string
	Label       string
	Name        string
	Placeholder string
	Value       string
	Rows        int
	Err         string
	Class       string
	Attrs       templ.Attributes
}

type TimelineItem

type TimelineItem struct {
	Start  string
	Middle templ.Component
	End    string
}

type Toast

type Toast struct {
	Name       string
	ToastClass string
	AlertClass string
}

type Toggle

type Toggle struct {
	ID        string
	Before    string
	After     string
	Name      string
	Checked   bool
	Class     string
	Highlight bool
	Attrs     templ.Attributes
}

type Tooltip

type Tooltip struct {
	Tip   string
	Class string
}

Jump to

Keyboard shortcuts

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