Skip to content

doniyor2109/grid-template-areas-x

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grid-template-areas-x

Utility for Template Grid Areas

Build Status GitHub PRs Welcome

Installation

npm install --save grid-template-areas-x

// or yarn

yarn add grid-template-areas-x

Usage

const x = require("grid-template-areas-x");

const style = `
    grid-template-areas: ${x`
      'header${2} nav${4}'
      'side${4} content${2}'
    `};
`;

// Results:

`
    grid-template-areas:
      'header header nav nav nav nav'
      'side side side side content content'
    ;
`

License

MIT