Documentation
¶
Overview ¶
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
Index ¶
- func AlpineInit() templ.Component
- func Badge(text string, variant string) templ.Component
- func EmptyState(message string) templ.Component
- func FormField(label string) templ.Component
- func Layout(activePage string, pageScript string, username string, isAdmin bool, ...) templ.Component
- func LoginLayout(pageScript string, content templ.Component) templ.Component
- func Navbar(activePage string, username string, isAdmin bool) templ.Component
- func PageHeader(title string, subtitle string) templ.Component
- func SkillsDrawer() templ.Component
- func StaticHandler() http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlpineInit ¶
func Badge ¶
Badge renders a daisyUI badge with the given variant. Supported variants: primary, secondary, accent, ghost, info, success, warning, error.
func EmptyState ¶
EmptyState renders a centered placeholder message.
func FormField ¶
FormField renders a labeled form field wrapper. The input content is provided as children.
func PageHeader ¶
PageHeader renders a consistent page title block.
func SkillsDrawer ¶
SkillsDrawer renders a slide-over skills management panel. It reads state from the surrounding Alpine scope (skillsDrawer.*) and calls methods provided by skillsDrawerMixin in /static/js/components/skills_drawer.js.
Include once inside a page's root x-data element; open via `openSkillsDrawer({...})`.
func StaticHandler ¶
StaticHandler returns an http.Handler that serves files from the embedded static directory, stripping the "/static/" prefix so that a request for GET /static/js/api.js resolves to static/js/api.js.
Types ¶
This section is empty.