Dynamically create card layout

Certified Associate Developer

I want to create below boxes dynamically for example if I receive 5 values from DB then there should be 2 rows and 3 columns, 1st complete row and 2nd row with 2 items

  Discussion posts and replies are publicly visible