UNPKG

navody-digital-frontend

Version:

Navody.Digital Frontend contains the code you need to start building a user interface for navody.digital

84 lines 2.92 kB
{ "component": "label", "fixtures": [ { "name": "default", "options": { "text": "National Insurance number" }, "html": "<label class=\"govuk-label\">\n National Insurance number\n</label>", "hidden": false }, { "name": "with bold text", "options": { "classes": "govuk-label--s", "text": "National Insurance number" }, "html": "<label class=\"govuk-label govuk-label--s\">\n National Insurance number\n</label>", "hidden": false }, { "name": "as page heading", "options": { "text": "National Insurance number", "classes": "govuk-label--xl", "isPageHeading": true }, "html": "<h1 class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--xl\">\n National Insurance number\n </label>\n </h1>", "hidden": false }, { "name": "empty", "options": {}, "html": "", "hidden": true }, { "name": "classes", "options": { "text": "National Insurance number", "classes": "extra-class one-more-class" }, "html": "<label class=\"govuk-label extra-class one-more-class\">\n National Insurance number\n</label>", "hidden": true }, { "name": "html as text", "options": { "text": "National Insurance number, <em>NINO</em>" }, "html": "<label class=\"govuk-label\">\n National Insurance number, &lt;em&gt;NINO&lt;/em&gt;\n</label>", "hidden": true }, { "name": "html", "options": { "html": "National Insurance number <em>NINO</em>" }, "html": "<label class=\"govuk-label\">\n National Insurance number <em>NINO</em>\n</label>", "hidden": true }, { "name": "for", "options": { "for": "#dummy-input", "text": "National Insurance number" }, "html": "<label class=\"govuk-label\" for=\"#dummy-input\">\n National Insurance number\n</label>", "hidden": true }, { "name": "attributes", "options": { "text": "National Insurance number", "attributes": { "first-attribute": "foo", "second-attribute": "bar" } }, "html": "<label class=\"govuk-label\" first-attribute=\"foo\" second-attribute=\"bar\">\n National Insurance number\n</label>", "hidden": true } ] }