Field

Brings together label, control, description and a server-side error. ControlAttrs() returns the aria-describedby and aria-invalid the control needs to carry.

With a description and with an error

Used to sign in to your account.

Start with https://

Invalid address.

{{ f := components.FieldProps{ID: "site", Label: "Website", Error: "Invalid address."} }}
@components.Field(f) {
  @components.Input(components.InputProps{ID: f.ID, Name: "site", Attrs: f.ControlAttrs()})
}