{ "component": "error-message", "fixtures": [ { "name": "default", "options": { "text": "Error message about full name goes here" }, "hidden": false, "html": "

\nError: Error message about full name goes here\n

" }, { "name": "translated", "options": { "visuallyHiddenText": "", "html": "Gwall: Neges gwall am yr enw llawn yn mynd yma" }, "hidden": false, "html": "

\nGwall: Neges gwall am yr enw llawn yn mynd yma\n

" }, { "name": "id", "options": { "id": "my-error-message-id", "text": "This is an error message" }, "hidden": true, "html": "

\nError: This is an error message\n

" }, { "name": "classes", "options": { "classes": "custom-class", "text": "This is an error message" }, "hidden": true, "html": "

\nError: This is an error message\n

" }, { "name": "html as text", "options": { "text": "Unexpected > in body" }, "hidden": true, "html": "

\nError: Unexpected > in body\n

" }, { "name": "html", "options": { "html": "Unexpected bold text in body copy" }, "hidden": true, "html": "

\nError: Unexpected bold text in body copy\n

" }, { "name": "attributes", "options": { "text": "This is an error message", "attributes": { "data-test": "attribute", "id": "my-error-message" } }, "hidden": true, "html": "

\nError: This is an error message\n

" }, { "name": "with visually hidden text", "options": { "text": "Rhowch eich enw llawn", "visuallyHiddenText": "Gwall" }, "hidden": true, "html": "

\nGwall: Rhowch eich enw llawn\n

" }, { "name": "visually hidden text removed", "options": { "text": "There is an error on line 42", "visuallyHiddenText": "" }, "hidden": true, "html": "

\nThere is an error on line 42\n

" } ] }