package inlinevalidation import "examples/shared" templ demo() {
@inp(fields["email"], "email", "", nil) @inp(fields["firstName"], "firstName", "", nil) @inp(fields["lastName"], "lastName", "", nil)
} templ inp(f field, name, value string, validation error) {
if validation != nil {

{ validation.Error() }

}
} templ Index() { @shared.Layout("Inline Validation") {

Inline Validation

@demo() } }