Skip to main content
Claimant navigation - Actions

Nunjucks macro options

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

Options for cards object

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