@fylgja/auto-grid
v1.1.3
Published
A super small grid with auto flowing behavior based on the container size. Using a similar method to container queries
Downloads
124
Readme
Fylgja - Auto Grid
A super small grid with auto flowing behavior, based on the container size.
Using a similar method to container queries.
This grid uses a minmax method, it fills the grid items based on the space available.
Where the min value is static value and the max value is 1fr
.
It creates a grid without needing to setup any columns and rows,
since the grid items will do this for you, following the content first approach!
Installation
npm install @fylgja/auto-grid
Then include the component in to your code via;
@use "@fylgja/auto-grid";
// Or via PostCSS import
@import "@fylgja/auto-grid";
@layer
support
If you need support for @layer
,
use the following import;
@use "@fylgja/auto-grid" with ($auto-grid-layer: "components");
// Or via native CSS import, also supported by PostCSS import
@import "@fylgja/auto-grid" layer("components");
How to use
For more information see the auto-grid docs on the Fylgja.dev.