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 |
---|---|---|
cards | object | Required. an array of cards, see cards |
Name | Type | Description |
---|---|---|
title | string | Required. Title of the card |
titleUrl | string | Required. The url of the title |
alert | string | Addtional paragraph of called out information |
description | string | paragraph of text to descript the card |