Documentation
¶
Index ¶
- func ComponentToString(c templ.Component) (string, error)
- func New[T any](defaultProps func() *T, tpl func(*T) templ.Component, props ...OptFunc[T]) templ.Component
- func NewWithProps[T any](tpl func(*T) templ.Component, props *T) templ.Component
- func Render(ctx echo.Context, status int, t templ.Component) error
- func WithProps[T any](defaultProps func() *T, props ...OptFunc[T]) *T
- type Component
- type OptFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New[T any](defaultProps func() *T, tpl func(*T) templ.Component, props ...OptFunc[T]) templ.Component
New creates a new templ.Component with the given props
func NewWithProps ¶
NewWithProps creates a new templ.Component with the given prop
Types ¶
Click to show internal directories.
Click to hide internal directories.