appbar

package
v0.0.0-...-3341fa3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

templ: version: v0.2.680

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppBarClasses

func AppBarClasses(appBarClasses string) templwind.OptFunc[Opts]

func Headline

func Headline(headline templ.Component) templwind.OptFunc[Opts]

func HeadlineClasses

func HeadlineClasses(headlineClasses string) templwind.OptFunc[Opts]

func Lead

func Lead(lead templ.Component) templwind.OptFunc[Opts]

func LeadClasses

func LeadClasses(leadClasses string) templwind.OptFunc[Opts]

func New

func New(opts ...templwind.OptFunc[Opts]) templ.Component

New creates a new component

func NewWithOpts

func NewWithOpts(opt *Opts) templ.Component

NewWithOpts creates a new component with the given opt

func Trail

func Trail(trail templ.Component) templwind.OptFunc[Opts]

func TrailClasses

func TrailClasses(trailClasses string) templwind.OptFunc[Opts]

Types

type Class

type Class interface {
	Border() string
	BorderTop() string
	BorderBottom() string
	BorderLeft() string
	BorderRight() string
}

type Opts

type Opts struct {
	AppBarClasses   string
	Lead            templ.Component
	LeadClasses     string
	Trail           templ.Component
	TrailClasses    string
	Headline        templ.Component
	HeadlineClasses string
}

Opts defines the options for the AppBar component

func WithOpts

func WithOpts(opts ...templwind.OptFunc[Opts]) *Opts

WithOpts builds the options with the given opt

Jump to

Keyboard shortcuts

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