2.0.1 • Published 4 years ago

reaktionsschnelle v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

reaktionsschnelle

A react component for making its children responsive based on the window size changes

NPM JavaScript Style Guide

Install

npm install --save reaktionsschnelle

Usage

import React from 'react'
import Reaktionsschnelle from 'reaktionsschnelle'
 
function App() {
  return <>
    <Reaktionsschnelle screens={['M', 'L']}>
      <div>Your screen is medium or large</div> 
    </Reaktionsschnelle>
 
    <Reaktionsschnelle screens={['S']}>
      <div>Your screen is small</div>
    </Reaktionsschnelle>
 
    <Reaktionsschnelle minWidth={500}>
      <div>Your screen is &lt;= 500px</div>
    </Reaktionsschnelle>
 
    <Reaktionsschnelle maxWidth={300}>
      <div>Your screen is &gt; 300px</div>
    </Reaktionsschnelle>
 
    <Reaktionsschnelle minWidth={800} maxWidth={1000}>
      <div>Your screen is &lt;= 800px and &lt; 1000px</div>
    </Reaktionsschnelle>
  </>
}
 
export default App

License

MIT © Raufoon

2.0.1

4 years ago

2.0.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago