After doing a bit more research about this, it seems the regular html <label> is sufficient for an accessible label. Adding this aria attribute might be more confusing than helpful.
Maybe this is already possible, but the only time you'd want it is if the normal label is not used. One should be able to manually add aria-label or aria-labelledby if they don't use the normal label.
https://github.com/promptworks/inputs/blob/4dca17868278b8fd7de1773930754c7239ccc1f2/src/useFieldProps.ts#L69
After doing a bit more research about this, it seems the regular html
<label>is sufficient for an accessible label. Adding this aria attribute might be more confusing than helpful.Maybe this is already possible, but the only time you'd want it is if the normal label is not used. One should be able to manually add
aria-labeloraria-labelledbyif they don't use the normal label.https://github.com/promptworks/inputs/blob/4dca17868278b8fd7de1773930754c7239ccc1f2/src/useFieldProps.ts#L69