The matrix component can be useful to display a selection of items in a format that is less linear than a normal list, using an image to describe each item.
Items will display in one column on small screens. At resolutions above
$breakpoint-medium, items will display three per row.
Note:To display correctly on large screens, you'll need to add list items in a multiple of three. If you do not have content for all the items, leave them empty but the list item must be present.
To import just this component into your project, copy the snippet below and include it in your main Sass file.
// import Vanilla and include base mixins // this only needs to happen once in a given project @import 'vanilla-framework/scss/vanilla'; @include vf-base; @include vf-p-matrix;
For more information see Customising Vanilla in your projects, which includes overrides and importing instructions.
For more information view the matrix design spec, which includes the specification in markdown format and a PNG image.