Skip to content

Flex Wrap

Utilities for applying flex-wrap type of element.

Quick reference

ClassProperty
flex-wrapflex-wrap: wrap;
flex-wrap-reverseflex-wrap: wrap-reverse;
flex-nowrapflex-wrap: nowrap;

Usage

Use the flex-{key} class for set up the flex-wrap type.


<div class="flex-wrap">
    <!-- ... -->
</div>

Applying conditionally

Breakpoints and media queries

You can also control the responsive breakpoint with variant class modifiers. For example lg:nowrap will be only apply on large screens size and above.


<div class="flex-wrap lg:nowrap">
    <!-- ... -->
</div>

Customization

Extend your theme

By default, the configuration provides a handful of general purpose flex-wrap type utilities. You can easily filter the default scales using the Sass configuration.

@use "lasco" with (
    $extend: (
        "flex-wrap": (
            nowrap
        )
    )
);

Disabled

You can easily disable the properties you don't need to use.

@use "lasco" with (
    $extend: (
        "flex-wrap": false
    )
);

Released under the MIT License.