Skip to main content
Nunjucks macro options
NameTypeDescription
idstringThe ID of the table.
rowsarrayRequired. The rows within the table component. See macro options for rows.
headarrayCan be used to add a row of table header cells (<th>) at the top of the table component. See macro options for head.
captionstringCaption text.
captionClassesstringClasses for caption text size. Classes should correspond to the available typography heading classes.
firstCellIsHeaderstringIf set to true, the first cell in each row will be a table header (<th>).
classesstringClasses to add to the table container.
attributesobject HTML attributes (for example data attributes) to add to the table container.