components

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Example

func Example(props ExampleProps) templ.Component

Example renders a tabbed card with Preview | Templ | Handler tabs. Preview shows the live demo (children). Templ and Handler show syntax-highlighted code. If HandlerCode is empty, the Handler tab is omitted.

Types

type ExampleProps

type ExampleProps struct {
	Title       string
	TemplCode   string // templ source code (shown in "Templ" tab)
	HandlerCode string // Go handler source code (shown in "Handler" tab, optional)
}

Jump to

Keyboard shortcuts

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