Back
Input
Types
States
With Icons
Usage
Import from the forms package. Pass any templ.Component to LeadingIcon / TrailingIcon.
@forms.Input(forms.InputProps{
Label: "Email",
Name: "email",
Type: "email",
Placeholder: "you@example.com",
LeadingIcon: mailIcon(), // any templ.Component
TrailingIcon: nil, // optional trailing icon
})