Type FormControlSemantics

type FormControlSemantics struct {
	Label    string
	Hint     string
	Error    string
	Required bool
	Disabled bool
	Invalid  bool
}

FormControlSemantics carries the typed metadata that the caller passes to the Input, Select, Checkbox, or other control painted into FormFieldLayout.Control.

Methods

AssistiveText#

func (semantics FormControlSemantics) AssistiveText() string

AssistiveText selects the most important single hint for controls whose current platform semantic contract accepts one hint string. Error remains a separate field so richer accessibility adapters can expose both values.