pub fn Field(_: FieldProps) -> ElementExpand description
A visible label, an optional hint and error, and one control, wired together.
The control inside (Input, Textarea, NativeSelect) takes its id,
aria-describedby, and aria-invalid from the field, so the label is always
associated and the error is always announced with it.
§Props
For details, see the props struct definition.
label:Elementhint:Option<Element>error:Option<Element>necessity:Necessityinline:boolLabel beside the control instead of above it.
control:Option<Id>The control’s id, when something else links to it, such as an
ErrorSummary. Generated when omitted.class:Option<String>attributes:Vec<Attribute>children:Element