Improve useField API
n
not ekke
1) it's very common to show a red asterisk next to the field label. I suggest to expose data-required attribute to the Field.Label
2) when developing my controls that support the Field component, I encountered redundancy of input/textarea props, and I would like to receive only field-related props that should be passed to some input. What about to expose getControlProps for useField API?
Didi Medina
you can do this already. useFieldContext() gives you invalid, disabled, required, and readOnly context and you can give that to any DOM element and then style accordingly.