Type FormFieldLayout

type FormFieldLayout struct {
	Bounds      ui.Rect
	Label       ui.Rect
	Control     ui.Rect
	Description ui.Rect
	Message     ui.Rect
	Semantics   FormControlSemantics
}

FormFieldLayout reports every deterministic slot painted for a form item. Zero Description or Message rectangles mean that the corresponding row was omitted. The caller paints the actual control into Control.

Constructors

PaintFormField#

func PaintFormField(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect, snapshot FormFieldSnapshot) FormFieldLayout

PaintFormField paints shadcn's label, description, and message recipe, in the same rhythm as Field, and returns the control slot. It never paints or registers the control itself, so editor state, values, validation, and interaction remain caller-owned.