UNPKG

govuk-frontend

Version:

GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.

39 lines (38 loc) 1.25 kB
[ { "name": "text", "type": "string", "required": true, "description": "If `html` is set, this is not required. Text to use within the error message. If `html` is provided, the `text` option will be ignored." }, { "name": "html", "type": "string", "required": true, "description": "If `text` is set, this is not required. HTML to use within the error message. If `html` is provided, the `text` option will be ignored." }, { "name": "id", "type": "string", "required": false, "description": "ID attribute to add to the error message `<p>` tag." }, { "name": "classes", "type": "string", "required": false, "description": "Classes to add to the error message `<p>` tag." }, { "name": "attributes", "type": "object", "required": false, "description": "HTML attributes (for example data attributes) to add to the error message `<p>` tag." }, { "name": "visuallyHiddenText", "type": "string", "required": false, "description": "A visually hidden prefix used before the error message. Defaults to `\"Error\"`." } ]