Using the Ionic grid to create a complex UI

Since this chapter is about Ionic components, I will mention that one of my favorite components is the Ionic grid—a really useful component to lay out your application. Based on Flexbox, it is very similar to Bootstrap's grid. The documentation on the Ionic grid says:

"The grid is composed of three units—a grid, row(s) and column(s). Columns will expand to fill their row and will resize to fit additional columns. It is based on a 12 column layout with different breakpoints based on the screen size. The number of columns and breakpoints can be fully customized using Sass."

We will create a complex UI structure with very minimal code. The app will look like the following image:

Get Ionic Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.