{ "component": "button", "fixtures": [ { "name": "default", "options": { "text": "Save and continue" }, "hidden": false, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "disabled", "options": { "text": "Disabled button", "disabled": true }, "hidden": false, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "link", "options": { "text": "Link button", "href": "/" }, "hidden": false, "description": "", "previewLayoutModifiers": [], "html": "\n Link button\n" }, { "name": "start", "options": { "text": "Start now button", "isStartButton": true }, "hidden": false, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "start link", "options": { "text": "Start now link button", "href": "/", "isStartButton": true }, "hidden": false, "description": "", "previewLayoutModifiers": [], "html": "\n Start now link button\n \n \n \n" }, { "name": "input", "options": { "element": "input", "name": "start-now", "text": "Start now" }, "hidden": false, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "input disabled", "options": { "element": "input", "text": "Explicit input button disabled", "disabled": true }, "hidden": false, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "prevent double click", "options": { "text": "Submit", "preventDoubleClick": true }, "hidden": false, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "with active state", "options": { "name": "active", "text": "Active", "classes": ":active" }, "hidden": false, "description": "Simulate triggering the :active CSS pseudo-class, not available in the production build.", "previewLayoutModifiers": [], "html": "" }, { "name": "with hover state", "options": { "name": "hover", "text": "Hovered", "classes": ":hover" }, "hidden": false, "description": "Simulate triggering the :hover CSS pseudo-class, not available in the production build.", "previewLayoutModifiers": [], "html": "" }, { "name": "with focus state", "options": { "name": "focus", "text": "Focussed", "classes": ":focus" }, "hidden": false, "description": "Simulate triggering the :focus CSS pseudo-class, not available in the production build.", "previewLayoutModifiers": [], "html": "" }, { "name": "secondary", "options": { "name": "secondary", "text": "Secondary button", "classes": "govuk-button--secondary" }, "hidden": false, "description": "A button for secondary actions", "previewLayoutModifiers": [], "html": "" }, { "name": "secondary disabled", "options": { "name": "secondary", "text": "Secondary button disabled", "classes": "govuk-button--secondary", "disabled": true }, "hidden": false, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "secondary link", "options": { "name": "secondary", "text": "Secondary button", "href": "/", "classes": "govuk-button--secondary" }, "hidden": false, "description": "A link button for secondary actions", "previewLayoutModifiers": [], "html": "\n Secondary button\n" }, { "name": "warning", "options": { "name": "Warning", "text": "Warning button", "classes": "govuk-button--warning" }, "hidden": false, "description": "A button for actions that need a warning", "previewLayoutModifiers": [], "html": "" }, { "name": "warning disabled", "options": { "name": "warning", "text": "Warning button disabled", "classes": "govuk-button--warning", "disabled": true }, "hidden": false, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "warning link", "options": { "name": "Warning", "text": "Warning button", "href": "/", "classes": "govuk-button--warning" }, "hidden": false, "description": "A link button for actions that need a warning", "previewLayoutModifiers": [], "html": "\n Warning button\n" }, { "name": "inverse", "options": { "name": "Inverse", "text": "Inverse button", "classes": "govuk-button--inverse" }, "hidden": false, "description": "A button that appears on dark backgrounds", "previewLayoutModifiers": [ "inverse" ], "html": "" }, { "name": "inverse disabled", "options": { "name": "Inverse", "text": "Inverse button disabled", "classes": "govuk-button--inverse", "disabled": true }, "hidden": false, "description": "", "previewLayoutModifiers": [ "inverse" ], "html": "" }, { "name": "inverse link", "options": { "name": "Inverse", "text": "Inverse button", "href": "/", "classes": "govuk-button--inverse" }, "hidden": false, "description": "A link button for actions that appear on dark backgrounds", "previewLayoutModifiers": [ "inverse" ], "html": "\n Inverse button\n" }, { "name": "inverse start", "options": { "name": "Inverse", "text": "Inverse start button", "href": "/", "classes": "govuk-button--inverse", "isStartButton": true }, "hidden": false, "description": "A start button that appears on dark backgrounds", "previewLayoutModifiers": [ "inverse" ], "html": "\n Inverse start button\n \n \n \n" }, { "name": "attributes", "options": { "element": "button", "text": "Submit", "attributes": { "aria-controls": "test-target-element", "data-tracking-dimension": 123 } }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "link attributes", "options": { "element": "a", "text": "Submit", "attributes": { "aria-controls": "test-target-element", "data-tracking-dimension": 123 } }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "\n Submit\n" }, { "name": "input attributes", "options": { "element": "input", "text": "Submit", "attributes": { "aria-controls": "test-target-element", "data-tracking-dimension": 123 } }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "classes", "options": { "text": "Submit", "element": "button", "classes": "app-button--custom-modifier" }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "link classes", "options": { "text": "Submit", "element": "a", "classes": "app-button--custom-modifier" }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "\n Submit\n" }, { "name": "input classes", "options": { "text": "Submit", "element": "input", "classes": "app-button--custom-modifier" }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "name", "options": { "text": "Submit", "element": "button", "name": "start-now" }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "type", "options": { "text": "Submit", "element": "button", "type": "button" }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "input type", "options": { "text": "Submit", "element": "input", "type": "button" }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "explicit link", "options": { "element": "a", "href": "/", "text": "Continue" }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "\n Continue\n" }, { "name": "no href", "options": { "text": "Submit", "element": "a" }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "\n Submit\n" }, { "name": "value", "options": { "text": "Submit", "element": "button", "value": "start" }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "html", "options": { "text": "Submit", "element": "button", "html": "Start now" }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "no type", "options": { "text": "Button!" }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "no data-prevent-double-click", "options": { "text": "Submit" }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "don't prevent double click", "options": { "text": "Submit", "preventDoubleClick": false }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "" }, { "name": "id", "options": { "text": "Submit", "element": "input", "id": "submit" }, "hidden": true, "description": "", "previewLayoutModifiers": [], "html": "" } ] }