UNPKG

css-grid-template-parser

Version:

A simple CSS Grid template parser

18 lines (17 loc) 247 B
import { Grid } from './types'; /** * grid * @param tpl string * @example * grid(` * ". ." * ". ." * `); * @returns * `{ * width: 2, * height: 2, * areas: {}, * }` */ export default function grid(tpl: string): Grid;