The standard auto-grid inserts an unlimited number of entries into the grid as long as they have space for another entry.

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8

You can also use the .gutter-{spacing}` generated utility that allows you to use the spacing design tokens.

Item 1
Item 2
Item 3
Item 4

Set the grid to auto-fill with data-auto-grid-fill.

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8

Set a maximum of 2 items with data-auto-grid-max="2"

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8

Set a maximum of 3 items with data-auto-grid-max="3"

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8