Grid layout
GridLayout enables complex arrangement of UI elements within a system of columns and rows to create an evenly distributed, responsive and organized user interface. Use it to position repeating widgets in the main content area, such as in a Dashboard. When combined with responsive breakpoints, you can configure GridLayout and GridItem to determine how content is displayed across different viewports and screen sizes.
Also known as: Column layout, Responsive grid
| Salt package | @salt-ds/core |
|---|
- When it's best to display your content using a configurable number of columns and rows, such as a form or a dashboard.
- For content regions where you display blocks or groups of content alongside each other, such as the main content area of the application,
Dialog, orDrawer. - When users will access the application or webpage across different viewport, screen or device sizes.
GridLayoutcontrols how to display the content and responsively organize across the different spaces, ensuring a reliable, usable experience.
- To define the high-level layout of your application surrounding the content area (i.e., header, footer, navigation areas. Instead, use
BorderLayout. - To lay out your content in a single dimension only, for example a horizontal summary bar containing a row of metric components, or a vertical stack of
Accordioncomponents. Instead, useStackLayout,FlowLayoutorFlexLayout.
To import GridLayout and GridItem from the core Salt package, use:
GridLayout has a complementary layout grid style library for Figma. J.P. Morgan employees can enable the Salt Layout Grid library from the Assets panel. External designers can install the library from the Salt community page.