isRequired
Tells whether the definition makes a field required: required: true, or required: { message }.
ts
const required = isRequired(field)Parameters
fieldJsonField
Explanation
Use it to show an asterisk next to a label. The schema does the checking, so a renderer needs it for display only. The adapters pass it to your components as required.
Returns
requiredboolean