card

package
v0.0.0-...-d808845 Latest Latest
Warning

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

Go to latest
Published: Aug 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 New

func New(prosps ...templwind.OptFunc[Props]) templ.Component

New creates a new component

func NewWithProps

func NewWithProps(props *Props) templ.Component

NewWithProps creates a new component with the given props

func WithButtons

func WithButtons(buttons templ.Component) templwind.OptFunc[Props]

func WithClass

func WithClass(class string) templwind.OptFunc[Props]

func WithComponents

func WithComponents(components ...templ.Component) templwind.OptFunc[Props]

func WithHeadIndicator

func WithHeadIndicator(headIndicator *indicator.Props) templwind.OptFunc[Props]

func WithID

func WithID(id string) templwind.OptFunc[Props]

func WithLead

func WithLead(lead string) templwind.OptFunc[Props]

func WithSubTitle

func WithSubTitle(subTitle string) templwind.OptFunc[Props]

func WithTitle

func WithTitle(title string) templwind.OptFunc[Props]

Types

type Props

type Props struct {
	ID            string
	Class         string
	Title         string
	SubTitle      string
	Lead          string
	HeadIndicator *indicator.Props
	Components    []templ.Component
	Buttons       templ.Component
}

func WithProps

func WithProps(prosps ...templwind.OptFunc[Props]) *Props

WithProps builds the propsions with the given props

Jump to

Keyboard shortcuts

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