Getting Started
Primitives
Composites
DaisyUI v5
Labelled text fields with built-in error and helper states.
@input.Input(input.Props{ Name: "email", Type: input.TypeEmail, Label: "Email address", Placeholder: "you@example.com", Required: true, })
Please enter a valid email address.
@input.Input(input.Props{ Name: "email", Label: "Email address", Value: "not-an-email", Error: "Please enter a valid email address.", })
@input.SearchInput(input.Props{ Name: "q", Placeholder: "Search users…", Attrs: templ.Attributes{ "hx-get": "/users", "hx-target": "#user-list", "hx-trigger": "input changed delay:300ms", "hx-push-url": "true", }, })