umeshmk / react-schematic

Build responsive react layouts using styled schematics without an overhead of any theme configuration

Home Page:https://umeshmk.github.io/react-schematic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Schematic

Build responsive react layouts using styled schematics without an overhead of any theme configuration

Install

npm i react-schematic

Usage

import {reactSchematic, breakpoints, Breakpoints} from 'react-schematic';

// Pass custom breakpoints as min-width
let custom: Breakpoints = {
  xs: 0,
  sm: 600,
  md: 900,
  lg: 1200,
  xl: 1536,
};

// Get responsive styled.div components
const {Container, Flex, FlexItem, Grid, GridItem} = reactSchematic(
  custom || breakpoints
);

Logs

v2.0.0

  • added support for padding and margin

About

Build responsive react layouts using styled schematics without an overhead of any theme configuration

https://umeshmk.github.io/react-schematic/

License:MIT License


Languages

Language:TypeScript 82.9%Language:CSS 16.1%Language:JavaScript 1.0%