Skip to main content

Field

Function Field 

Source
pub fn Field(_: FieldProps) -> Element
Expand 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.