Flow layout
FlowLayout is a simple mechanism that arranges UI elements in a horizontal order and responsively wraps them onto subsequent rows. It builds on top of FlexLayout and is best for small-scale layouts to display components in a responsive row, such as a row of metrics or a filter bar where fields wrap over multiple lines. For additional control of the size and position of content, use FlexItem for each content item inside a FlowLayout.
| Salt package | @salt-ds/core |
|---|
When building a sub-section of a page using a flow layout, apply semantic HTML, This means using the correct HTML elements for their intended purpose as much as possible.
Flow layouts support this behavior by allowing access to a prop called as that allows you to render the appropriate HTML instead of a plain div.