Stylish Form Field
A labeled form field wrapper — the web "Field/Form" pattern from shadcn/ui and Ant Design.
Composes a label (with an optional required marker), the content slot (the input itself), and supporting/error text below it. The error message takes precedence over the supporting text and is rendered in the error color.
Parameters
Modifier applied to the root column.
Optional label text shown above the content.
When true and label is set, an asterisk is shown next to the label. Defaults to false.
Whether the field is in its error state. When true, errorMessage is rendered in the error color. Defaults to false.
Optional error text shown below the content.
Optional helper text shown below the content when there is no error message.
Typography of the label. Defaults to MaterialTheme.typography.labelLarge.
Typography of supportingText. Defaults to MaterialTheme.typography.bodySmall.
The input content (e.g. a text field).