daisyui

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

templ: version: v0.3.943

Index

Constants

View Source
const (
	AlertSeverityInfo    AlertSeverity = "alert-info"
	AlertSeveritySuccess AlertSeverity = "alert-success"
	AlertSeverityWarning AlertSeverity = "alert-warning"
	AlertSeverityError   AlertSeverity = "alert-error"

	AlertStyleDash AlertStyle = "alert-dash"
	AlertStyleSoft AlertStyle = "alert-soft"

	AlertDirectionHorizontal AlertDirection = "alert-horizontal"
	AlertDirectionVertical   AlertDirection = "alert-vertical"
)
View Source
const (
	BtnColorNeutral   BtnColor = "btn-neutral"
	BtnColorPrimary   BtnColor = "btn-primary"
	BtnColorSecondary BtnColor = "btn-secondary"
	BtnColorInfo      BtnColor = "btn-info"

	BtnSizeXtraSmall BtnSize = "btn-xs"
	BtnSizeSmall     BtnSize = "btn-sm"
	BtnSizeMedium    BtnSize = ""
	BtnSizeLarge     BtnSize = "btn-lg"
	BtnSizeXtraLarge BtnSize = "btn-xl"
)
View Source
const (
	CheckboxColorNeutral   CheckboxColor = "checkbox-neutral"
	CheckboxColorPrimary   CheckboxColor = "checkbox-primary"
	CheckboxColorSecondary CheckboxColor = "checkbox-secondary"
	CheckboxColorError     CheckboxColor = "checkbox-error"

	CheckboxSizeXtraSmall CheckboxSize = "checkbox-xs"
	CheckboxSizeSmall     CheckboxSize = "checkbox-sm"
	CheckboxSizeMedium    CheckboxSize = "checkbox-md"
	CheckboxSizeLarge     CheckboxSize = "checkbox-lg"
	CheckboxSizeXtraLarge CheckboxSize = "checkbox-xl"
)
View Source
const (
	RadioColorNeutral   RadioColor = "radio-neutral"
	RadioColorPrimary   RadioColor = "radio-primary"
	RadioColorSecondary RadioColor = "radio-secondary"
	RadioColorError     RadioColor = "radio-error"

	RadioSizeXtraSmall RadioSize = "radio-xs"
	RadioSizeSmall     RadioSize = "radio-sm"
	RadioSizeMedium    RadioSize = "radio-md"
	RadioSizeLarge     RadioSize = "radio-lg"
	RadioSizeXtraLarge RadioSize = "radio-xl"
)
View Source
const (
	SelectColorNeutral   SelectColor = "select-neutral"
	SelectColorGhost     SelectColor = "select-ghost"
	SelectColorPrimary   SelectColor = "select-primary"
	SelectColorSecondary SelectColor = "select-secondary"
	SelectColorInfo      SelectColor = "select-info"
	SelectColorError     SelectColor = "select-error"

	SelectSizeXtraSmall SelectSize = "select-xs"
	SelectSizeSmall     SelectSize = "select-sm"
	SelectSizeMedium    SelectSize = "select-md"
	SelectSizeLarge     SelectSize = "select-lg"
	SelectSizeXtraLarge SelectSize = "select-xl"
)
View Source
const (
	TabStyleLift TabStyle = "tabs-lift"
	TabStyleBox  TabStyle = "tabs-box"
	TabStyleLine TabStyle = "tabs-line"

	TabSizeXtraSmall TabSize = "tabs-xs"
	TabSizeSmall     TabSize = "tabs-sm"
	TabSizeMedium    TabSize = "tabs-md"
	TabSizeLarge     TabSize = "tabs-lg"
	TabSizeXtraLarge TabSize = "tabs-xl"
)
View Source
const (
	TextInputColorNeutral   TextInputColor = "input-neutral"
	TextInputColorPrimary   TextInputColor = "input-primary"
	TextInputColorSecondary TextInputColor = "input-secondary"
	TextInputColorError     TextInputColor = "input-error"

	TextInputSizeXtraSmall TextInputSize = "input-xs"
	TextInputSizeSmall     TextInputSize = "input-sm"
	TextInputSizeMedium    TextInputSize = "input-md"
	TextInputSizeLarge     TextInputSize = "input-lg"
	TextInputSizeXtraLarge TextInputSize = "input-xl"

	TextInputTypeText          TextInputType = "text"
	TextInputTypeEmail         TextInputType = "email"
	TextInputTypePassword      TextInputType = "password"
	TextInputTypeNumber        TextInputType = "number"
	TextInputTypeTel           TextInputType = "tel"
	TextInputTypeSearch        TextInputType = "search"
	TextInputTypeDate          TextInputType = "date"
	TextInputTypeDateTimeLocal TextInputType = "datetime-local"
	TextInputTypeTime          TextInputType = "time"
	TextInputTypeUrl           TextInputType = "url"
	TextInputTypeColor         TextInputType = "color"
	TextInputTypeWeek          TextInputType = "week"
	TextInputTypeMonth         TextInputType = "month"
)
View Source
const (
	TextAreaColorNeutral   TextAreaColor = "textarea-neutral"
	TextAreaColorPrimary   TextAreaColor = "textarea-primary"
	TextAreaColorSecondary TextAreaColor = "textarea-secondary"

	TextAreaSizeXtraSmall TextAreaSize = "textarea-xs"
	TextAreaSizeSmall     TextAreaSize = "textarea-sm"
	TextAreaSizeMedium    TextAreaSize = "textarea-md"
	TextAreaSizeLarge     TextAreaSize = "textarea-lg"
	TextAreaSizeXtraLarge TextAreaSize = "textarea-xl"
)
View Source
const (
	ToastPositionStart  = "toast-start"
	ToastPositionEnd    = "toast-end"
	ToastPositionTop    = "toast-top"
	ToastPositionBottom = "toast-bottom"
	ToastPositionMiddle = "toast-middle"
	ToastPositionCenter = "toast-center"
)

Variables

This section is empty.

Functions

func Alert added in v0.3.0

func Alert(props AlertProps, attrlist ...templ.KeyValue[string, any]) templ.Component

func Btn

func Btn(p BtnProps, attrlist ...templ.KeyValue[string, any]) templ.Component

func Checkbox

func Checkbox(p CheckboxProps, attrlist ...templ.KeyValue[string, any]) templ.Component

func DropMenu

func DropMenu(attrlist ...templ.KeyValue[string, any]) templ.Component

func DropMenuItems

func DropMenuItems(attrlist ...templ.KeyValue[string, any]) templ.Component

func DropMenuName

func DropMenuName(attrlist ...templ.KeyValue[string, any]) templ.Component

func FieldSet

func FieldSet(attrlist ...templ.KeyValue[string, any]) templ.Component

func Label

func Label(p LabelProps, attrlist ...templ.KeyValue[string, any]) templ.Component

func Legend

func Legend(attrlist ...templ.KeyValue[string, any]) templ.Component
func Menu(p MenuProps, attrlist ...templ.KeyValue[string, any]) templ.Component
func MenuItem(attrlist ...templ.KeyValue[string, any]) templ.Component
func MenuTitle() templ.Component

func Radio

func Radio(p RadioProps, attrlist ...templ.KeyValue[string, any]) templ.Component
func Search() templ.Component

func Select

func Select(p SelectProps, attrlist ...templ.KeyValue[string, any]) templ.Component

func TextArea

func TextArea(p TextAreaProps, attrlist ...templ.KeyValue[string, any]) templ.Component

func TextInput

func TextInput(p TextInputProps, attrlist ...templ.KeyValue[string, any]) templ.Component

func Timeline

func Timeline(p TimelineProps, attrlist ...templ.KeyValue[string, any]) templ.Component

func TimelineItem

func TimelineItem(attrlist ...templ.KeyValue[string, any]) templ.Component

func TimelinePart

func TimelinePart(p TimelinePartProps, attrlist ...templ.KeyValue[string, any]) templ.Component

func Toast added in v0.3.0

func Toast(attrlist ...templ.KeyValue[string, any]) templ.Component

Types

type AlertDirection added in v0.3.0

type AlertDirection string

type AlertProps added in v0.3.0

type AlertProps struct {
	Severity  AlertSeverity
	Style     AlertStyle
	Direction AlertDirection
}

type AlertSeverity added in v0.3.0

type AlertSeverity string

type AlertStyle added in v0.3.0

type AlertStyle string

type BtnColor

type BtnColor string

type BtnProps

type BtnProps struct {
	ID       string
	Class    string
	Color    BtnColor
	Size     BtnSize
	Disabled bool
	Square   bool
	Outline  bool
}

type BtnSize

type BtnSize string

type CheckboxColor

type CheckboxColor string

type CheckboxProps

type CheckboxProps struct {
	Color CheckboxColor
	Size  CheckboxSize
}

type CheckboxSize

type CheckboxSize string

type DropMenuItemsProps

type DropMenuItemsProps struct {
	ID    string
	Class string
}

func (DropMenuItemsProps) ClassName

func (p DropMenuItemsProps) ClassName() string

type DropMenuNameProps

type DropMenuNameProps struct {
	ID    string
	Class string
}

func (DropMenuNameProps) ClassName

func (p DropMenuNameProps) ClassName() string

type LabelProps

type LabelProps struct {
	Floating bool
	AsInput  bool
}
type MenuProps struct {
	Horizontal bool
	Size       MenuSize
}
type MenuSize string
const (
	MenuSizeXtraSmall MenuSize = "menu-xs"
	MenuSizeSmall     MenuSize = "menu-sm"
	MenuSizeMedium    MenuSize = "menu-md"
	MenuSizeLarge     MenuSize = "menu-lg"
	MenuSizeXtraLarge MenuSize = "menu-xl"
)
type Modal struct {
	WithCloseBtn  bool
	ModalPosition ModalPosition
}

func (Modal) Content

func (m Modal) Content(attrlist ...templ.KeyValue[string, any]) templ.Component

func (Modal) Modal

func (m Modal) Modal(attrlist ...templ.KeyValue[string, any]) templ.Component

type ModalPosition added in v0.3.1

type ModalPosition string
const (
	ModalPositionTop    ModalPosition = "modal-top"
	ModalPositionBottom ModalPosition = "modal-bottom"
	ModalPositionMiddle ModalPosition = "modal-middle"
	ModalPositionStart  ModalPosition = "modal-start"
	ModalPositionEnd    ModalPosition = "modal-end"
)

type RadioColor

type RadioColor string

type RadioProps

type RadioProps struct {
	Color RadioColor
	Size  RadioSize
}

type RadioSize

type RadioSize string

type SelectColor

type SelectColor string

type SelectProps

type SelectProps struct {
	Color SelectColor
	Size  SelectSize
}

type SelectSize

type SelectSize string

type TabSize

type TabSize string

type TabStyle

type TabStyle string

type Table

type Table struct {
	Zebra  bool
	Size   TableSize
	Widths []int
	// contains filtered or unexported fields
}

func (*Table) Body

func (t *Table) Body(attrlist ...templ.KeyValue[string, any]) templ.Component

func (*Table) Header

func (t *Table) Header(attrlist ...templ.KeyValue[string, any]) templ.Component

func (*Table) Row

func (t *Table) Row(attrlist ...templ.KeyValue[string, any]) templ.Component

func (*Table) TD

func (t *Table) TD(attrlist ...templ.KeyValue[string, any]) templ.Component

func (*Table) TH

func (t *Table) TH(pos int, attrlist ...templ.KeyValue[string, any]) templ.Component

func (*Table) Table

func (t *Table) Table(attrlist ...templ.KeyValue[string, any]) templ.Component

type TableSize

type TableSize string
const (
	TableSizeXtraSmall TableSize = "table-xs"
	TableSizeSmall     TableSize = "table-sm"
	TableSizeMedium    TableSize = "table-md"
	TableSizeLarge     TableSize = "table-lg"
	TableSizeXtraLarge TableSize = "table-xl"
)

type Tabs

type Tabs struct {
	Name     string
	TabStyle TabStyle
	Size     TabSize
}

func (Tabs) Tab

func (t Tabs) Tab(isChecked bool, attrlist ...templ.KeyValue[string, any]) templ.Component

func (Tabs) TabContent

func (t Tabs) TabContent(attrlist ...templ.KeyValue[string, any]) templ.Component

func (Tabs) Tabs

func (t Tabs) Tabs(attrlist ...templ.KeyValue[string, any]) templ.Component

type TextAreaColor

type TextAreaColor string

type TextAreaProps

type TextAreaProps struct {
	Color TextAreaColor
	Size  TextAreaSize
}

type TextAreaSize

type TextAreaSize string

type TextInputColor

type TextInputColor string

type TextInputProps

type TextInputProps struct {
	Color TextInputColor
	Size  TextInputSize
	Type  TextInputType
}

type TextInputSize

type TextInputSize string

type TextInputType

type TextInputType string

type TimelinePartProps

type TimelinePartProps struct {
	Pos TimelinePosition
	Box bool
}

type TimelinePosition

type TimelinePosition string
const (
	PositionStart  TimelinePosition = "timeline-start"
	PositionMiddle TimelinePosition = "timeline-middle"
	PositionEnd    TimelinePosition = "timeline-end"
)

type TimelineProps

type TimelineProps struct {
	Vertical    bool
	IconAtStart bool
	Compact     bool
}

type ToastPosition added in v0.3.0

type ToastPosition string

Jump to

Keyboard shortcuts

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