components

package
v0.0.0-...-1094846 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.3.857

templ: version: v0.3.857

templ: version: v0.3.857

templ: version: v0.3.857

templ: version: v0.3.857

templ: version: v0.3.857

templ: version: v0.3.857

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accordian

func Accordian(args AccordianArgs) templ.Component

func Button

func Button(args ButtonArgs) templ.Component
func Navbar(n NavbarArgs) templ.Component

func Notification

func Notification(args NotificationArgs) templ.Component

Types

type AccordianArgs

type AccordianArgs struct {
	Name  string
	Class string
	Rows  []AccordianRow
}

type AccordianRow

type AccordianRow struct {
	Class   string
	Summary templ.Component
	Content templ.Component
	Open    bool
}

type ButtonArgs

type ButtonArgs struct {
	Class     string
	Palette   style.PaletteClass
	Content   templ.Component
	Href      string
	Target    string
	Disabled  bool
	Type      string
	IconLeft  templ.Component
	IconRight templ.Component
}
type NavbarArgs struct {
	Brand templ.Component
	Links []NavbarItem
}
type NavbarBreak struct{}
func (n NavbarBreak) Display() templ.Component
type NavbarDropdown struct {
	Text     string
	SubItems []NavbarItem
}
func (n NavbarDropdown) Display() templ.Component
type NavbarItem interface {
	Display() templ.Component
}
type NavbarLink struct {
	Text string
	Href string
}
func (n NavbarLink) Display() templ.Component

type NotificationArgs

type NotificationArgs struct {
	Class   string
	Palette style.PaletteClass
	Content templ.Component
}

Jump to

Keyboard shortcuts

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