Skip to content

Comparison Table

This component is pretty much a regular HTML table; can compare different true/false benefits.

Anatomy

  1. Columns
  2. Rows

Comparison Table

Can compare different true/false benefits

Usage Guidelines

The checkmark icons used within this table are standard inline icons and will follow the standard color rules for icons (check for any declared colors in this order: icon color > accent color > text color).

Accessibility

This component is pretty much a regular HTML table, so keep in mind standard table accessibility concerns.

WordPress

If this has a WordPress block or other way of using this in WordPress note that here.

Properties

PropertyTypeRequiredDescription
columnsarrayYesArray of strings for column headings
rowsarrayYesarray of objects with "label" (string) and "values" (array of boolean values)
classstringNolist of additional classes to apply to main element.

Specifications

Properties

PropertyTypeDescriptionRequiredDefault
columnsarray Array of strings for column headings Yes-
└ itemstring - --
rowsarray array of objects with 'label' (string) and 'values' (array of boolean values) Yes-
└ itemstring - --
classstring list of additional classes to apply to main element. No-

Styling

Custom Properties

NameDefaultResetsDescription
--tux-comp-comparison-table--colorcurrentColorYes-

Changelog

5.2.0 (2023-07-24)

1.35.0 (2022-06-30)

  • fix: set dynamic sticky height (d731c0f)

1.0.0

  • comparison-table added

Examples

Default

Benefit Online On Campus
Venenatis Tristique Ornare Fringilla
Malesuada Tellus Commodo
Fusce Ligula Sit Cras Consectetur
Tellus Justo Mollis
{{ include( 'components/comparison-table.twig', {
	columns: {...}
	rows: {...}
} ) }}