Type FormFieldSnapshot

type FormFieldSnapshot struct {
	Label         string
	Description   string
	Message       string
	Error         string
	ControlHeight float32
	Required      bool
	Disabled      bool
	Invalid       bool
	// ControlID, when set, is the identity of the control painted into the
	// layout's Control slot; the label then labels it (see ui.Canvas.HitLabel),
	// as `htmlFor` does, so pressing the label focuses and clicks the control.
	ControlID ui.ID
}

FormFieldSnapshot is the caller-owned state for one form item. Error takes precedence over Message, matching shadcn's FormMessage behavior without a form registry, context, or validation runtime.