Containers, rows and columns

Usage

The layout system uses containers, rows, and columns to layout and align content, and is built with Flexbox and is fully responsive. We provide three different components to build complex views:

JSON structure example

"viewDefinition": {
    "children": {
        "container": {
            "type": "container",
            "id": "someId",
            "fluid": true,
            "children": {
                "row1": {
                    "type": "row",
                    "children: {
                        "col1": {
                            "type": "col"
                        },
                        "col2": {
                            "type": "col"
                        }
                    }
                },
                "row2": {
                    "type": row",
                    "children: {
                        "col3": {
                            "type": "col"
                        },
                        "col4": {
                            "type": "col"
                        }
                    }
                }
            }
        }
    }
}

Do's and Don'ts

For more details, refer to Grid Usage and Visual styleguides in our Storybook