components/forms/10-error-messages/error-messages.html (2 lines of code) (raw):
{% render '@input-field', { type: 'text', label: 'Date', id: 'date', name: 'date', required: 'True', msg: 'Must be in the format 2022-05-04', value: 'May the 4th, \'22', field_class: 'mzp-is-error' } %}
{% render '@choice', { type: 'checkbox', name: 'accept-tos', id: 'accept-tos', required: 'True', legal: 'True', label: 'I accept the terms and conditions.', error: 'True', msg: 'You must accept terms and conditions to continue.' } %}