Work in progress
This page is a design preview. It may not contain the latest guidance and may not behave as expected.
Current guidance can always be found at design-system.dwp.gov.uk.
Use options to customise the appearance, content and behaviour of a component when using a macro, for example, changing the text.
Some options are required for the macro to work; these are marked as "Required" in the option description.
If you're using Nunjucks macros in production with "html" options, or ones ending with "html", you must sanitise the HTML to protect against cross-site scripting exploits.
Name | Type | Description |
---|---|---|
primaryReference | object | Required. The primary reference, see primaryReference |
secondaryReference | object | The secondary reference, see secondaryReference |
status | object | The claim status, see status |
classes | string | Additional classes to add to the quick reference component |
ariaLabel | string | value for the aria label, this defaults to Quick reference |
attributes | object | HTML Attributes (data attributes) to the quick reference component |
Name | Type | Description |
---|---|---|
text | string | Required. Text to use within the primary reference |
value | string | Required. Value to use within the primary reference |
Name | Type | Description |
---|---|---|
text | string | Required. Text to use within the secondary reference |
textDisplay | boolean | Required. Allow description to be displayed |
value | string | Required. Value to use within the secondary reference |
Name | Type | Description |
---|---|---|
text | string | Required. Text to use within claim status |
textDisplay | boolean | Allow status description to be displayed |
value | string | Required. Value to use within claim status |
classes | string | Additional classes to add to claim status |