Skip to main content

flex

Return a set of properties and values used to build a flexbox layout.

ParameterTypeDescription
$justifystringValid justify-content value (default: flex-start)
$alignstringValid align-items value (default: stretch)
$wrapstringValid flex-wrap value (default: nowrap)
$dirstringValid flex-direction value (default: row)

Example

Components/ExampleComponent/_style.scss
.m-example-component {
@include flex($justify: flex-start, $align: stretch, $wrap: nowrap, $dir: row);
}
dist/frontend.css
.m-example-component {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: stretch;
}