.cluster class allows for a responsive cluster system of separate elements. It is closely related to the flow pattern. However, the difference here is that
.cluster assumes the child elements will span multiple rows.
.cluster-stretch combines the
.cluster with the ideas of
.tiles. Based on the settings, the layout determines itself how many elements fit horizontally. The remaining available horizontal space is equally distributed among all elements on a row, even when there is only one element on a row (e.g. bottom row). All elements should be the same size, except for the bottom row.
The available utility classes to alter the settings for
.tiles are listed below.
.cluster-g-<name>: set the
gapproperty, which defines the gap both vertically and horizontally between items in the cluster system. Based on
.cluster-w-<name>: set the
min-widthof an individual item in the cluster system, based on
If the utility classes are not flexible enough and you want to adjust the way the layout pattern behaves, adjust the
--cluster-widthcustom properties on the element you are applying this pattern to.