@nascentdigital/react-lattice
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

react-lattice

A set of flexible React components that simplify responsive web development.

NPM JavaScript Style Guide

Install

npm i -s @nascentdigital/react-lattice

Usage

// imports
import * as React from "react";
import {createGrid} from "@nascentdigital/react-lattice";

// define Grid (can be customized)
const Grid = createGrid();


// component
export const Page = () => {

    // render
    return (
        <Grid container justify="spaceEvenly" alignItems="center">
            <Grid item flex={{xs: 12, md: 6}}>                  
                Left (desktop), Top (mobile + tablet)                
            </Grid>
            <Grid item flex={{xs: 12, md: 6}}>                  
                Right (desktop), Bottom (mobile + tablet)                
            </Grid>
        </Grid>
    );
};

License

MIT © Nascent Digital

Package Sidebar

Install

npm i @nascentdigital/react-lattice

Weekly Downloads

19

Version

1.3.0

License

MIT

Unpacked Size

213 kB

Total Files

31

Last publish

Collaborators

  • kgrimsley
  • prateems
  • jtamminga
  • martyrk
  • izrg93
  • twillw
  • sdedios
  • bernietrinh