1.0.13 • Published 7 years ago

react-styled-responsive-toolkit v1.0.13

Weekly downloads
17
License
Apache-2.0
Repository
github
Last release
7 years ago

React Styled Components Responsive Toolkit

This toolkit does nothing more then bundle some useful tools together.

It contains:

  • styled-components-breakpoint
  • react-break
  • hedron

Usage:

import statement:

#!javascript

import { LgCSS, Xs, Lg } from 'react-styled-responsive-toolkit';

Then use it in your styled-components or within your JSX Code:

#!javascript

const Wrapper = styled.div`
    background-color: blue;
    ${LgCSS`
      background-color: red;      
    `}
`;


function Box(props) {
  return (
    <Wrapper>
      <Lg>
        We are on Desktop
      </Lg>
      <Xs>
        We are on Mobile
      </Xs>
    </Wrapper>
  );
}

IMPORTANT: XsCSS exists but should not be used regularly as we are building mobile first. It just exists for some edge cases.

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago